Android Utililty Methods Short Bit Set

List of utility methods to do Short Bit Set

Description

The list of methods to do Short Bit Set are organized into topic(s).

Method

shortswap(short x)
swap
return (short) ((x << 8) | ((x >> 8) & 0xff));
shortswapBytes(short value)
swap Bytes
int b1 = value & 0xff;
int b2 = (value >> 8) & 0xff;
return (short) (b1 << 8 | b2 << 0);