Skip to main content

pamoja_lorawan_defrag_block

Function pamoja_lorawan_defrag_block 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_lorawan_defrag_block( session: *const PamojaLorawanDefrag, out_block: *mut u8, capacity: usize, out_len: *mut usize, ) -> PamojaStatus
Expand description

Reads the block a session has put back together.

§Arguments

  • session - the session.
  • out_block - receives the bytes, or null to ask only for the length.
  • capacity - how many bytes that buffer holds.
  • out_len - receives the block’s length.

§Returns

PamojaStatus::Ok on success.

§Errors

Returns PamojaStatus::InvalidArgument for a null handle or a buffer too small.

§Safety

session must be a live handle, out_block must point to capacity writable bytes or be null, and out_len must be writable.