Example #1
0
        /// <summary>
        /// Reads a 16-bit integer from the current header data and advances the current position by 2 bytes.
        /// </summary>
        /// <returns>The next 16-bit integer.</returns>
        public short ReadInt16()
        {
            short readShort = LittleEndian.GetInt16(Data, Position);

            Position += sizeof(short);

            return(readShort);
        }