pub fn read_next_vec<T: StacksMessageCodec + Sized, R: Read>( fd: &mut R, num_items: u32, max_items: u32) -> Result<Vec<T>, Error>