예제 #1
0
        /// <summary>
        /// Reads four-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 ReadUInt()
        {
            AssertRead(4, "UInt");

            return(BE ? ByteUtils.ToUIntBE(buffer) : ByteUtils.ToUIntLE(buffer));
        }