System.Runtime.Serialization.Plists.EndianConverter.SwapUInt16 C# (CSharp) Method

SwapUInt16() public static method

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