Skip to main content

pamoja_mesh_frame_payload

Function pamoja_mesh_frame_payload 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_mesh_frame_payload( frame: *const PamojaMeshFrame, ) -> *const u8
Expand description

Returns a pointer to the payload a frame carries.

Use pamoja_mesh_frame_payload_len for the length. The pointer is valid until the frame is freed.

§Returns

A pointer to the payload, or null if frame is null or the payload is empty.

§Safety

frame must be a live handle from a call that produced one, or null.