Skip to main content

pamoja_gateway_packet_txpk_payload

Function pamoja_gateway_packet_txpk_payload 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_gateway_packet_txpk_payload( packet: *const PamojaGatewayPacket, ) -> *const u8
Expand description

Returns a pointer to the payload a PULL_RESP carries.

Use pamoja_gateway_packet_txpk_payload_len for its length. The pointer is valid until the packet is freed.

§Arguments

  • packet - the packet.

§Returns

The pointer, or null when the packet is not a PULL_RESP.

§Safety

packet must be a live handle, or null.