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

SwapInt16() public static method

Swaps the endian-ness of the given value.
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));
        }