pub fn reconstruct_views(
buffer: &ByteBuffer,
max_buffer_len: usize,
) -> (Vec<ByteBuffer>, Buffer<BinaryView>)Expand description
Reconstruct BinaryView structs from length-prefixed byte data.
The buffer contains interleaved u32 lengths (little-endian) and string data.
When the cumulative data exceeds max_buffer_len, the buffer is split (zero-copy) into
multiple segments so that BinaryView’s u32 offsets can address all data.
Pass MAX_BUFFER_LEN for max_buffer_len in production; a smaller value can be used in
tests to exercise the splitting path without allocating >2 GiB.