Function columnar::bytes::serialization::encode

source ยท
pub fn encode<'a>(
    store: &mut Vec<u64>,
    bytes: impl Iterator<Item = (u64, &'a [u8])>,
)
Expand description

Encodes a sequence of byte slices as their length followed by their bytes, aligned to 8 bytes.

Each length will be exactly 8 bytes, and the bytes that follow are padded out to a multiple of 8 bytes. When reading the data, the length is in bytes, and one should consume those bytes and advance over padding.