Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallbackDispatcher ¶
type CallbackDispatcher[CallbackContext any] interface { // DispatchCallback dispatches a call from foreign function. // // targetPC is the pc provided when registering the target function. // ctx is the foreign function specific callback context. DispatchCallback(targetPC uintptr, ctx *CallbackContext) }
CallbackDispatcher defines the generic interface to dispatch ffi callbacks.
The CallbackContext is specific to each foreign language.
type DispatchFunc ¶
type DispatchFunc[T any, CallbackContext any] func( recv T, targetPC uintptr, ctx *CallbackContext, )
DispatchFunc is the function signature of CallbackDispatcher.DispatchCallback
Click to show internal directories.
Click to hide internal directories.