예제 #1
0
        /// <summary>
        /// Reads three-bytes unsigned value from the underlaying stream.
        /// </summary>
        /// <returns><see cref="uint"/> read</returns>
        /// <exception cref="IOException">Thrown when end of stream was reached and <see cref="Unsecure"/> is false.</exception>
        public uint Read24UInt()
        {
            AssertRead(3, "UInt");

            return(BE ? ByteUtils.To24UIntBE(buffer) : ByteUtils.To24UIntLE(buffer));
        }