Skip to main content

Function: findNativeClass()

findNativeClass(glibTypeName, walkHierarchy): NativeClass | null

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

Finds a native class by walking the type hierarchy.

If the exact type is not registered, walks up the parent chain until a registered type is found (unless walkHierarchy is false).

Parameters

ParameterTypeDefault valueDescription
glibTypeNamestringundefinedThe GLib type name to start from
walkHierarchybooleantrueWhether to walk up the parent chain (default: true)

Returns

NativeClass | null

The closest registered parent class, or null