Example #1
0
        public ushort ReadUInt16LE()
        {
            int offset = this.Position + 1;

            this.Position += 2;
            return(ByteArrayHelpers.ReadUInt16LE(this._buffer, offset));
        }
#pragma warning disable 3001, 3002

        /// <summary>
        /// Read an <see cref="System.UInt16"/> (Little-endian),
        /// and move the pointer accordingly
        /// </summary>
        /// <returns></returns>
        public UInt16 ReadUInt16LE()
        {
            int ptr = Position + 1;

            Position += 2;
            return(ByteArrayHelpers.ReadUInt16LE(
                       _buffer,
                       ptr));
        }