pub fn read_vec<R: Read, T, F: Fn(&mut R) -> Result<T>>( f: F, r: &mut R, ) -> Result<Vec<T>>
Read a length-prefixed variable-length list of elements.