public static short SwapInt16(short value) { return (short)(((value & 0xff) << 8) | ((value >> 8) & 0xff)); }