Skip to main content

pamoja_gateway_station_message_payload

Function pamoja_gateway_station_message_payload 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_gateway_station_message_payload( message: *const PamojaGatewayStationMessage, out_payload: *mut *mut PamojaBuffer, ) -> PamojaStatus
Expand 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 with pamoja_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.