Skip to main content

encode_fixed_length_vec

Function encode_fixed_length_vec 

Source
pub fn encode_fixed_length_vec<T: Encode>(
    vec: &[T],
    expected_len: usize,
    buf: &mut Vec<u8>,
) -> Result<(), String>
Expand description

Helper functions for encoding/decoding fixed-length vectors These functions do not encode a length prefix since it’s known from context