Skip to main content

pamoja_gateway_packet_txpk_payload_len

Function pamoja_gateway_packet_txpk_payload_len 

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

Returns the length of the payload a PULL_RESP carries.

§Arguments

  • packet - the packet.

§Returns

The length, or 0 when the packet is not a PULL_RESP.

§Safety

packet must be a live handle, or null.