Function encode_vec_with_sentinel

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

Encodes the source buffer into a vector with an arbitrary sentinel value, using the encode_with_sentinel function.