MCPcopy Create free account
hub / github.com/jupp0r/node-api / wrap

Function wrap

src/napi.rs:479–490  ·  view source on GitHub ↗

pub fn napi_wrap(env: napi_env, js_object: napi_value, native_object: *mut ::std::os::raw::c_void, finalize_cb: napi_finalize, finalize_hint: *mut ::std::os::raw::c_void, result: *mut napi_ref) -> napi_status;

(env: NapiEnv, js_object: NapiValue, native_object: Box<T>)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

napi_eitherFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…