[][src]Function dart_sys::Dart_InvokeVMServiceMethod

pub unsafe extern "C" fn Dart_InvokeVMServiceMethod(
    request_json: *mut u8,
    request_json_length: isize,
    response_json: *mut *mut u8,
    response_json_length: *mut isize,
    error: *mut *mut c_char
) -> bool

Invoke a vm-service method and wait for its result.

\param request_json The utf8-encoded json-rpc request. \param request_json_length The length of the json-rpc request.

\param response_json The returned utf8-encoded json response, must be free()ed by caller. \param response_json_length The length of the returned json response. \param error An optional error, must be free()ed by caller.

\return Whether the call was sucessfully performed.

NOTE: This method does not need a current isolate and must not have the vm-isolate being the current isolate. It must be called after Dart_Initialize() and before Dart_Cleanup().