示例#1
0
        public VariableInteger ReadVariableInteger()
        {
            // Set Token Length and Token
            byte initial = PeekByte();
            int  size    = VariableInteger.Size(initial);

            byte[] bytes = new byte[size];
            Buffer.BlockCopy(_array, _offset, bytes, 0, size);
            _offset += size;

            return(bytes);
        }
示例#2
0
 public byte[] ReadBytes(VariableInteger count)
 {
     return(ReadBytes(count.Value));
 }