Skip to main content

vtable_thunk

Utility for calling virtual functions on FFI objects. This variant takes the this-pointer as the first argument and grabs the virtual function from it when called.

vtable_thunk(index: number, typestring: string, ...): function

Arguments

NameDescriptionType
indexIndex of the virtual functionnumber
typestringA FFI type string, such as "int(__thiscall*)(void*, int)"string
argsAdditional arguments for the type (for use with parameterized types)unknown

Returns function