pub fn decode<R: Read>(read: &mut R) -> ComResult<(Vec<KVal>, usize)>
Decode the bytes to KVals and return them with bytes_read.