#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_gateway_packet_parse(
bytes: *const u8,
len: usize,
out_packet: *mut *mut PamojaGatewayPacket,
) -> PamojaStatusExpand description
Reads a datagram.
§Arguments
bytes- the datagram as it arrived.len- its length.out_packet- receives the packet.
§Returns
PamojaStatus::Ok, or PamojaStatus::Codec for a datagram this protocol does not
describe, with the reason in the last error message.
§Safety
bytes must point at len readable bytes or be null, and out_packet must be writable.