get_or_truncate_buffer

Function get_or_truncate_buffer 

Source
fn get_or_truncate_buffer(array_data: &ArrayData) -> &[u8] 
Expand description

Returns the sliced views [Buffer] for a BinaryView/Utf8View array.

The views buffer is sliced to only include views in the valid range based on the array’s offset and length. This helps reduce the encoded size of sliced arrays