pub fn cobs_encode_response<'a>(
response: Response,
write_buf: &mut [u8; 512],
encode_buf: &'a mut [u8; 512],
) -> Option<&'a [u8]>Expand description
COBS-encode a response into encode_buf with trailing 0x00 sentinel.
Returns the slice to send (encoded frame + sentinel), or None on overflow.