Skip to main content

pamoja_serial_script_write

Function pamoja_serial_script_write 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_serial_script_write( script: *mut PamojaSerialScript, bytes: *const u8, len: usize, ) -> PamojaStatus
Expand description

Adds a write the program is expected to make, in one call.

§Arguments

  • script - the script.
  • bytes - the bytes of the write.
  • len - how many bytes.

§Returns

PamojaStatus::Ok, or PamojaStatus::InvalidArgument for a null argument.

§Safety

script must be a live handle or null, and bytes must point to len readable bytes.