pub fn encode<'a, I: Iterator<Item = Option<&'a [u8]>>>(
data: &mut [u8],
offsets: &mut [usize],
i: I,
opts: SortOptions,
)Expand description
Variable length values are encoded as
- single
0_u8if null - single
1_u8if empty array 2_u8if not empty, followed by one or more blocks
where a block is encoded as
BLOCK_SIZEbytes of string data, padded with 0s0xFF_u8if this is not the last block for this string- otherwise the length of the block as a
u8