Lucene.Net.Support.DataInputStream.ReadShort C# (CSharp) Метод

ReadShort() публичный Метод

public ReadShort ( ) : short
Результат short
        public short ReadShort()
        {
            int ch1 = @in.ReadByte();
            int ch2 = @in.ReadByte();
            if ((ch1 | ch2) < 0)
                throw new EndOfStreamException();
            return (short)((ch1 << 8) + (ch2 << 0));
        }