List of utility methods to do Byte to Unsigned Int
int | byteToUInt(byte b) Returns the unsigned value of a byte return b & 0xFF;
|
long | byteToul(byte b) byte Toul return b > 0 ? b : (b & 0x7F + 128);
|
int | byteToUnInt(Byte sByte) da Byte a intero int uByte = sByte.intValue(); if (uByte <= 0) { uByte = uByte + 256; return uByte; |
int | byteToUnsigned(byte b) byte To Unsigned int value = (int) b; return (value >= 0 ? value : value + 256); |
int | byteToUnsigned(byte b) This function converts a byte into its unsigned integer form. int unsigned = b & 0xFF; return unsigned; |
short | byteToUnsigned(byte signed) byte To Unsigned if (signed >= 0) { return signed; } else { return (short) (256 + (short) signed); |
short | byteToUnsignedByte(byte b) byte To Unsigned Byte return (short) (b & 0xff); |
int | byteToUnsignedint(byte b) byte To Unsignedint int i = b; if (i < 0) { i += 256; return i; |
int | byteToUnsignedInt(byte b) Convert a byte into an unsigned integer.
return ((int) b) & 0xff; |
int | byteToUnsignedInt(final byte b) byte To Unsigned Int return (b >= 0) ? ((int) b) : ((int) (256 + b)); |