Skip to main content

str_vector_from_ends

Function str_vector_from_ends 

Source
pub fn str_vector_from_ends(
    arena: &mut MorselArena,
    bytes: &[u8],
    ends: &[u64],
) -> ValueVector
Expand description

A flat string vector over the bytes and ends a decoded string column arrives in, where ends is the offset one past each string.

This is the read path’s constructor and it exists because the general one above wants a slice of slices, which a scan would have to build first: sixteen bytes a row written and read again to get at bytes that are already laid out end to end. Here the ends walk straight into the views.