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