public static SwapInt16 ( short value ) : short | ||
value | short | The value to swap the endian-ness of. |
return | short |
public static short SwapInt16(short value)
{
return (short)(((value & 0xff) << 8) | ((value >> 8) & 0xff));
}