Encodes a single u64 into variable-byte format and appends to the buffer.
This function does not clear the buffer; it appends the encoded bytes to the end.
Encodes a strictly increasing sequence of u64 integers using differential encoding (delta encoding) combined with variable-byte encoding.
This reduces the serialized size by storing the differences between consecutive values.