Function teaclave_client_sdk::bindings::teaclave_get_task_result
source · [−]#[no_mangle]
pub unsafe extern "C" fn teaclave_get_task_result(
client: &mut FrontendClient,
task_id: *const c_char,
task_result: *mut c_char,
task_result_len: *mut size_t
) -> c_int
Expand description
Get task result of task_id
. The result will be save in the task_result
buffer, and set corresponding task_result_len
argument. Note that this is
a blocking function and wait for the return of the task. The function
returns 0 for success. On error, the function returns 1.
Safety
Inconsistent length of allocated buffer may caused overflow.