Skip to main content

pamoja_serial_script_read

Function pamoja_serial_script_read 

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

Adds bytes the far end sends, readable once every step before them has happened.

§Arguments

  • script - the script.
  • bytes - what arrives.
  • len - how many bytes.

§Returns

As pamoja_serial_script_write.

§Safety

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