Function decode_vec_with_sentinel

Source
pub fn decode_vec_with_sentinel(
    source: &[u8],
    sentinel: u8,
) -> Result<Vec<u8>, DecodeError>
Available on crate feature alloc only.
Expand description

Decodes the source buffer into a vector with an arbitrary sentinel value.