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

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

Reads a signed 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 readShort ( ) : short
Результат short
        public virtual short readShort()
        {
            if (pos + 1 < len)
            {
                // common, fast case
                return (short) ((buf[pos++] << 8) | (0xFF & buf[pos++]));
            }
            // general case
            return (short) ((read() << 8) | read());
        }