OpenRA.StreamExts.ReadUInt16 C# (CSharp) Method

ReadUInt16() public static method

public static ReadUInt16 ( this s ) : ushort
s this
return ushort
        public static ushort ReadUInt16(this Stream s)
        {
            return BitConverter.ToUInt16(s.ReadBytes(2), 0);
        }