pub fn encode(data: &[u8], encoded: &mut [u8]) -> Result<usize, EncodeError>Expand description
Encodes an opaque data blob with COBS using 0 as the sentinel value. Returns the number of bytes the encoding took. Returns an error if the output buffer is too small.