#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_gateway_packet_rxpk_payload(
packet: *const PamojaGatewayPacket,
index: usize,
) -> *const u8Expand description
Returns a pointer to one forwarded packet’s payload.
Use pamoja_gateway_packet_rxpk_payload_len for its length. The pointer is valid until
the packet is freed.
§Arguments
packet- the packet.index- which forwarded packet, from zero.
§Returns
The pointer, or null when there is no packet at that index.
§Safety
packet must be a live handle, or null.