dochy_compaction::enc_dec::encode
pub fn encode<W: Write>(vec: &[KVal], write: &mut W) -> Result<usize>