pub fn encode_vec_u16<T: Codec>(bytes: &mut Vec<u8>, items: &[T])
encode a Vec whose length is encoded in 2 bytes