pub unsafe fn encode_unchecked(data: &[u8], encoded: &mut [u8]) -> usizeExpand description
Encodes an opaque data blob with COBS using 0 as the sentinel value. Returns the number of bytes the encoding took.
ยงSafety
The caller must ensure encoded has at least encode_buffer(data.len()) bytes.