fn encode_string(string: Option<&str>, buffer: &mut Vec<u8>)Expand description
Encodes an optional string the same way as serializing it with memcomparable.
Each 8-byte group is padded with zeros and followed by a byte holding the group length, or 9 if more groups follow. Writing whole groups avoids a variable-length copy per group.