Skip to main content

Function: findNativeObject()

findNativeObject(handle): NativeObject | null

Defined in: packages/ffi/src/registry.ts:107

Finds an existing JavaScript wrapper for a native pointer.

Looks up the identity registry to find a previously registered wrapper for the given native handle. Returns null if no wrapper exists or if the wrapper has been garbage collected.

Parameters

ParameterTypeDescription
handleNativeHandleThe native handle to look up

Returns

NativeObject | null

The existing wrapper, or null if not found