pub fn encode_slice<T: Encode, W: Write>( slice: &[T], writer: &mut W, ) -> Result<()>
Encodes length of slice and then each element