MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / cb_create_client

Function cb_create_client

rust/src/websocket/provider.rs:117–128  ·  view source on GitHub ↗
(
    ctxt: *mut c_void,
)

Source from the content-addressed store, hash-verified

115}
116
117unsafe extern "C" fn cb_create_client<W: WebsocketProvider>(
118 ctxt: *mut c_void,
119) -> *mut BNWebsocketClient {
120 let ctxt: &mut W = &mut *(ctxt as *mut W);
121 match ctxt.create_client() {
122 Ok(owned_client) => {
123 // SAFETY: The caller is assumed to have picked up this ref.
124 Ref::into_raw(owned_client).handle.as_ptr()
125 }
126 Err(_) => std::ptr::null_mut(),
127 }
128}

Callers

nothing calls this directly

Calls 1

create_clientMethod · 0.80

Tested by

no test coverage detected