pub fn encode(values: &[&[u8]]) -> Result<Vec<u8>>Expand description
Encodes a chunk of strings, choosing whatever comes out smallest.
Every candidate that applies is encoded in full and the smallest is kept, which is what this has
always done and is what every size this crate has reported came out of. encode_with is the
same thing with the search made swappable.
ยงErrors
If the chunk is longer than u32::MAX values, or if an encoding produces something its own
decoder would not accept.