List of utility methods to do Byte to Unsigned Int
int | asUnsigned(byte value) as Unsigned return value & 0xFF;
|
int | asUnsigned(final byte byteValue) Convert signed byte to unsigned int representation. return 0xFF & byteValue;
|
int | asUnsignedByte(byte b) as Unsigned Byte return b & 0xFF;
|
byte | asUnsignedByte(int n) as Unsigned Byte return (byte) ((n) & 0xFF); |
int | asUnsignedInt(byte b) as Unsigned Int return asUnsignedInt(new byte[] { b }); |
int | asUnsignedInt(byte signedValue) Converts an unsigned 8-bit value (represented by the signed byte data type) to a 32-bit int value. return signedValue & 0xFF;
|
long | asUnsignedLong(byte signedValue) Converts an unsigned 8-bit value (represented by the signed byte data type) to a 64-bit long value. return signedValue & 0xFFL;
|
short | asUnsignedShort(byte signedValue) Converts an unsigned 8-bit value (represented by the signed byte data type) to a 16-bit short value. return (short) (signedValue & 0xFF); |
int | asUnsignedShort(short s) as Unsigned Short return s & 0xFFFF;
|
short | byteToUByte(byte value) byte To U Byte return (short) (((short) value) & UNSIGNED_BYTE_MASK); |