#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_gateway_station_message_payload(
message: *const PamojaGatewayStationMessage,
out_payload: *mut *mut PamojaBuffer,
) -> PamojaStatusExpand description
Returns the bytes a message carries: the payload of a frame, or the frame to transmit.
§Arguments
message- the message.out_payload- receives the bytes, which the caller releases withpamoja_buffer_free.
§Returns
PamojaStatus::Ok once written, with an empty buffer for a kind carrying none.
§Safety
message must be a live handle, and out_payload must point to writable storage.