Method CreateNativeVtableProxyStubs
CreateNativeVtableProxyStubs(nint, int)
Populates a native vtable with proxy stubs to an object with the same vtable shape.
ReadOnlyMemory<IAllocatedMemory> CreateNativeVtableProxyStubs(nint vtableBase, int vtableSize)
Parameters
vtableBase
nint- The base pointer for the vtable to fill. This must be large enough to hold
vtableSize
entries. vtableSize
int- The number of vtable entries to fill.
Returns
- ReadOnlyMemory<IAllocatedMemory>
- A collection of IAllocatedMemory which contain the stubs referenced by the generated vtable.
Remarks
The expected layout for the proxy object is this: