CSJ2K.Util.EndianBinaryReader.ReadUInt16 C# (CSharp) Method

ReadUInt16() public method

public ReadUInt16 ( ) : ushort
return ushort
        public override ushort ReadUInt16()
        {
            if (_bigEndian)
            {
                byte[] buf = this.ReadBytes(2);
                Array.Reverse(buf);
                return BitConverter.ToUInt16(buf, 0);
            }
            else
                return base.ReadUInt16();
        }