pub fn write_prefix_vec<W, E, I>( writer: &mut W, vector: &[I], ) -> Result<usize, E>where W: Write, E: From<SerError> + From<Error> + Error, I: ByteFormat<Error = E>,
Convenience function to write a Bitcoin-style length-prefixed vector.