Пример #1
0
        public virtual int GetInt()
        {
            var result = buffer.GetInt(index + offset);

            index += Bits.IntSizeInBytes;
            return(result);
        }
Пример #2
0
        public virtual byte[] GetByteArray()
        {
            var length = Buffer.GetInt(_index + _offset);

            _index += Bits.IntSizeInBytes;
            var result = new byte[length];

            Buffer.GetBytes(_index + _offset, result);
            _index += length;
            return(result);
        }