List of utility methods to do Unsigned Short Create
int | toUnsignedShort(byte a, byte b) Converts 2 bytes to a unsigned short .
int n; n = (a & 0xff) << 8; n |= (b & 0xff); return n; |
int | toUnsignedShort(byte b1, byte b2) to Unsigned Short return (b1 & 0xFF) | ((b2 & 0xFF) << 8);
|
int | toUnsignedShort(char[] bytes, boolean le) to Unsigned Short if (bytes.length != 4) return 0; return (int) Long.parseLong(bytesToString(bytes, le, false), 16); |
int | toUnsignedShort(int value) to Unsigned Short return SHORT_UNSIGNED_MASK & value;
|
int | toUnsignedShort(short s) Converts a short to the corresponding unsigned short value and returns the result as an int return (s & MAX_SHORT);
|
int | toUnsignedShort(short value) Return the unsigned short value [0|65535] from the java short value [-32768|32767]. return value - Short.MIN_VALUE;
|