Skip to main content

pamoja_gateway_packet_to_buffer

Function pamoja_gateway_packet_to_buffer 

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

Writes a packet as the datagram to send.

§Arguments

  • packet - the packet.

§Returns

A buffer the caller releases with pamoja_buffer_free, or null if packet is null.

§Safety

packet must be a live handle, or null.