List of utility methods to do Byte to Int
int | byteToPositiveInt(byte inByte) byte To Positive Int return inByte + 128;
|
int | ubyte2int(byte in) ubyteint return (in < 0) ? (int) in + 256 : (int) in; |
int | ubyte2int(final byte x) Interprets the value of x as an unsigned byte, and returns it as integer. return x & 0xFF;
|