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