Пример #1
0
        /// <summary>
        ///  Reads a 2-byte unsigned integer from the current stream using little-endian encoding
        ///  and advances the position of the stream by two bytes.
        /// </summary>
        /// <returns>A 2-byte unsigned integer read from this stream.</returns>
        public ushort ReadUInt16()
        {
            Debug.Assert(_buffer != null);
            var valRead = _buffer.GetUShort(_offset);

            _offset += WoffBuffer.SizeOfUShort;

            return(valRead);
        }