iTextSharp.text.pdf.RandomAccessFileOrArray.ReadShortLE C# (CSharp) Метод

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

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

Usage Example

Пример #1
0
 // Methods to read primitive data types from the stream
 
 private short ReadShort(RandomAccessFileOrArray stream)
 {
     if (isBigEndian) {
         return stream.ReadShort();
     } else {
         return stream.ReadShortLE();
     }
 }
All Usage Examples Of iTextSharp.text.pdf.RandomAccessFileOrArray::ReadShortLE