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

            this.Position += 2;
            return(ByteArrayHelpers.ReadUInt16BE(this._buffer, offset));
        }
        /// <summary>
        /// Read an <see cref="System.UInt16"/> (Big-endian),
        /// and move the pointer accordingly
        /// </summary>
        /// <returns></returns>
        public UInt16 ReadUInt16BE()
        {
            int ptr = Position + 1;

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