Skip to main content

are_strings

Function are_strings 

Source
pub fn are_strings(values: &[u8], offsets: &[i32]) -> bool
Expand description

Whether values and offsets are the bytes and offsets of valid strings: string i is values[offsets[i]..offsets[i + 1]], and each is UTF-8. This is what makes them a StringArray (StringArray::new_unchecked), checked in parallel pieces: the ids of a stored index are read once here, on all cores, when it loads.

The offsets must rise (not strictly) and end within values, which the caller has checked.