Function dora_node_api_c::dora_send_output
source · #[no_mangle]
pub unsafe extern "C" fn dora_send_output(
context: *mut c_void,
id_ptr: *const u8,
id_len: usize,
data_ptr: *const u8,
data_len: usize,
) -> isize
Expand description
Sends the given output to subscribed dora nodes/operators.
The id_ptr
and id_len
fields must be the start pointer and length of an
UTF8-encoded string. The ID string must correspond to one of the node’s
outputs specified in the dataflow YAML file.
The data_ptr
and data_len
fields must be the start pointer and length
a byte array. The dora API sends this data as-is, without any processing.
§Safety
- The
id_ptr
andid_len
fields must be the start pointer and length of an UTF8-encoded string. - The
data_ptr
anddata_len
fields must be the start pointer and length a byte array.