Skip to main content

pamoja_gateway_packet_rxpk_payload_len

Function pamoja_gateway_packet_rxpk_payload_len 

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

Returns the length of one forwarded packet’s payload.

§Arguments

  • packet - the packet.
  • index - which forwarded packet, from zero.

§Returns

The length, or 0 when there is no packet at that index.

§Safety

packet must be a live handle, or null.