Skip to main content

pamoja_gateway_station_message_set_options

Function pamoja_gateway_station_message_set_options 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_gateway_station_message_set_options( message: *mut PamojaGatewayStationMessage, bytes: *const u8, bytes_len: usize, ) -> PamojaStatus
Expand description

Sets the frame options a data frame carries.

§Arguments

  • message - the message.
  • bytes - the options.
  • bytes_len - how many bytes bytes holds.

§Returns

PamojaStatus::Ok once set, or PamojaStatus::InvalidArgument for a kind that carries none.

§Safety

message must be a live handle, and bytes must point to bytes_len readable bytes.