FSO.Files.Endian.SwapInt16 C# (CSharp) Method

SwapInt16() public static method

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