List of utility methods to do Number Swap
short | swapShort(short value) Toggles the endianness of the specified 16-bit short integer. return Short.reverseBytes(value);
|
short | swapShort(short value) Reverses the byte order of the source short value return (short) (((value & 0xFF00) >> 8) | ((value & 0x00FF) << 8)); |