Exemplo n.º 1
0
        /// <summary>
        /// Reads three-bytes signed value from the underlaying stream.
        /// </summary>
        /// <returns><see cref="int"/> read</returns>
        /// <exception cref="IOException">Thrown when end of stream was reached and <see cref="Unsecure"/> is false.</exception>
        public int Read24Int()
        {
            AssertRead(3, "Int");

            return(BE ? ByteUtils.To24IntBE(buffer) : ByteUtils.To24IntLE(buffer));
        }