Function cobs::decode_in_place_with_sentinel
source ยท pub fn decode_in_place_with_sentinel(
buff: &mut [u8],
sentinel: u8,
) -> Result<usize, ()>
Expand description
Decodes a message in-place using an arbitrary sentinel value.
The returned usize
is the number of bytes used for the DECODED value,
NOT the number of source bytes consumed during decoding.