Lucene.Net.Store.DataInput.ReadShort C# (CSharp) Method

ReadShort() public method

Reads two bytes and returns a short. LUCENENET NOTE: Important - always cast to ushort (System.UInt16) before using to ensure the value is positive!
public ReadShort ( ) : short
return short
        public virtual short ReadShort()
        {
            return (short)(ushort)(((ReadByte() & 0xFF) << 8) | (ReadByte() & 0xFF));
        }