コード例 #1
0
ファイル: WoffReader.cs プロジェクト: ElinamLLC/SharpVectors
        /// <summary>
        ///  Reads a 2-byte signed integer from the current stream and advances the current
        ///  position of the stream by two bytes.
        /// </summary>
        /// <returns>A 2-byte signed integer read from the current stream.</returns>
        public short ReadInt16()
        {
            Debug.Assert(_buffer != null);
            var valRead = _buffer.GetShort(_offset);

            _offset += WoffBuffer.SizeOfShort;

            return(valRead);
        }