ptr

Pptr
Bun

Symbol

FFIFunction.ptr

readonly ptr?: bigint | Pointer

Function pointer to the native function

If provided, instead of using dlsym() to lookup the function, Bun will use this instead. This pointer should not be null (0).

This is useful if the library has already been loaded or if the module is also using Node-API.