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); }
public byte[] ReadBytes(VariableInteger count) { return(ReadBytes(count.Value)); }