Skip to main content

pamoja_gateway_station_message_parse

Function pamoja_gateway_station_message_parse 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_gateway_station_message_parse( text: *const u8, text_len: usize, ) -> *mut PamojaGatewayStationMessage
Expand description

Reads a message that arrived over the websocket.

§Arguments

  • text - the message text.
  • text_len - how many bytes text holds.

§Returns

A handle the caller must release with pamoja_gateway_station_message_free, or null on failure.

§Safety

text must point to text_len readable bytes.