#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_serial_cobs_encode(
payload: *const u8,
payload_len: usize,
out_buffer: *mut *mut PamojaBuffer,
) -> PamojaStatusExpand description
Frames a payload as a COBS packet, terminated by its zero delimiter.
§Returns
PamojaStatus::Ok on success, with *out_buffer set to a new buffer handle
the caller must release with
pamoja_buffer_free.
§Safety
payload must point to at least payload_len readable bytes, or be null when
payload_len is 0, and out_buffer must point to a writable
*mut PamojaBuffer.