MCPcopy Create free account
hub / github.com/AimRT/AimRT / Invoke

Method Invoke

src/interface/aimrt_module_cpp_interface/rpc/rpc_handle.h:219–233  ·  view source on GitHub ↗

* @brief Invoke rpc * * @param full_func_name * @param ctx_ref * @param req_ptr * @param rsp_ptr * @param callback */

Source from the content-addressed store, hash-verified

217 * @param callback
218 */
219 void Invoke(
220 std::string_view full_func_name,
221 ContextRef ctx_ref,
222 const void* req_ptr,
223 void* rsp_ptr,
224 aimrt::rpc::ClientCallback&& callback) {
225 AIMRT_ASSERT(base_ptr_, "Reference is null.");
226 base_ptr_->invoke(
227 base_ptr_->impl,
228 aimrt::util::ToAimRTStringView(full_func_name),
229 ctx_ref.NativeHandle(),
230 req_ptr,
231 rsp_ptr,
232 callback.NativeHandle());
233 }
234
235 /**
236 * @brief Invoke rpc

Callers

nothing calls this directly

Calls 3

ToAimRTStringViewFunction · 0.85
GetFullFuncNameFunction · 0.85
NativeHandleMethod · 0.45

Tested by

no test coverage detected