Function ffi_utils::test_utils::call_vec_u8 [] [src]

pub unsafe fn call_vec_u8<F>(f: F) -> Result<Vec<u8>, i32> where
    F: FnOnce(*mut c_void, extern "C" fn(_: *mut c_void, _: FfiResult, _: *const u8, _: usize)), 

Call a FFI function and block until its callback gets called, then copy the byte array argument which was passed to Vec<u8> and return the result.