public void WriteVarBytes(byte[] value) { var compactSize = CompactInt.WriteCompact(_array, _cursor, (ulong)value.Length); Array.Copy(value, 0, _array, _cursor + compactSize, value.Length); _cursor += compactSize + value.Length; }
public void WriteCompact(ulong value) { var compactSize = CompactInt.WriteCompact(_array, _cursor, value); _cursor += compactSize; }