Hook

constructor()

Allocate a new Hook.

This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.


constructor(scope: <Error class: unknown class>)

Allocate a new Hook using the provided AutofreeScope.

The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped.

Parameters

scope

The AutofreeScope to allocate this structure in.


constructor(data: <Error class: unknown class>, next: Hook?, prev: Hook?, refCount: <Error class: unknown class>, hookId: <Error class: unknown class>, flags: <Error class: unknown class>, func: <Error class: unknown class>)

Allocate a new Hook.

This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.

Parameters

data

data which is passed to func when this hook is invoked

next

pointer to the next hook in the list

prev

pointer to the previous hook in the list

refCount

the reference count of this hook

hookId

the id of this hook, which is unique within its list

flags

flags which are set for this hook. See #GHookFlagMask for predefined flags

func

the function to call when this hook is invoked. The possible signatures for this function are #GHookFunc and #GHookCheckFunc


constructor(data: <Error class: unknown class>, next: Hook?, prev: Hook?, refCount: <Error class: unknown class>, hookId: <Error class: unknown class>, flags: <Error class: unknown class>, func: <Error class: unknown class>, scope: <Error class: unknown class>)

Allocate a new Hook using the provided AutofreeScope.

The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped.

Parameters

data

data which is passed to func when this hook is invoked

next

pointer to the next hook in the list

prev

pointer to the previous hook in the list

refCount

the reference count of this hook

hookId

the id of this hook, which is unique within its list

flags

flags which are set for this hook. See #GHookFlagMask for predefined flags

func

the function to call when this hook is invoked. The possible signatures for this function are #GHookFunc and #GHookCheckFunc

scope

The AutofreeScope to allocate this structure in.


constructor(pointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)