#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_serial_cobs_decode(
frame: *const u8,
frame_len: usize,
out_buffer: *mut *mut PamojaBuffer,
) -> PamojaStatusExpand description
Reads the payload back out of a COBS frame.
§Returns
PamojaStatus::Ok on success, with *out_buffer set to a new buffer handle
the caller must release with
pamoja_buffer_free, or
PamojaStatus::Codec if the frame is corrupt.
§Safety
frame must point to at least frame_len readable bytes, or be null when
frame_len is 0, and out_buffer must point to a writable
*mut PamojaBuffer.