pub unsafe extern "C" fn napi_get_value_external(
env: napi_env,
value: napi_value,
result: *mut *mut c_void,
) -> napi_statusAvailable on crate feature
napi only.Expand description
Obtains the external data pointer previously passed through napi_create_external().
§Arguments
-
env- Current running virtual machine context. -
value- JavaScript external value. -
result- The data wrapped by the JavaScript external value.
§Returns
- Returns the function execution status.
[
napi_ok] If the function executed successfully.
[napi_invalid_arg] If the param env, value or result is nullptr;
[napi_pending_exception] There is an uncaught exception occurred before(in) execution.
Available since API-level: 10