The list of methods to do Unsigned Int Create are organized into topic(s).
int
toUnsignedInt(byte b) Convert a signed byte to an unsigned int (unsigned in the sense that only values between 0 and 255 are allowed).
return b & 0xFF;
int
toUnsignedInt(byte value) Transforms the given byte value to an positive int between 0 and 255.
int intValue = value & 0x7F;
return value < 0 ? intValue + 128 : intValue;
int
toUnsignedInt(byte x) Converts the argument to an int by an unsigned conversion.
return ((int) x) & 0xff;
int[]
toUnsignedInt(byte[] a) this method copies a byte array to an int array and treats the byte values as unsigned
int[] b = new int[a.length];
for (int i = 0; i < a.length; i++) {
b[i] = a[i] & 0xff;
return b;
long
toUnsignedInt(int i) Converts an int to the corresponding unsigned int value and returns the result as a long
return (long) (i & MAX_INT);