CSJ2K.j2k.util.ISRandomAccessIO.readUnsignedShort C# (CSharp) Метод

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

Reads an unsigned short (16 bit) from the input.
If the end-of file was reached before getting /// all the necessary data. /// /// If an I/O error ocurred. /// ///
public readUnsignedShort ( ) : int
Результат int
        public virtual int readUnsignedShort()
        {
            if (pos + 1 < len)
            {
                // common, fast case
                return ((0xFF & buf[pos++]) << 8) | (0xFF & buf[pos++]);
            }
            // general case
            return (read() << 8) | read();
        }