ITypeLib constructor

ITypeLib(
  1. VTablePointer ptr
)

Creates a new instance of ITypeLib from a VTablePointer.

This constructor requires a valid pointer to the ITypeLib interface. The ptr must not be nullptr; otherwise, an assertion error is thrown.

Implementation

ITypeLib(super.ptr) : _vtable = ptr.value.cast<ITypeLibVtbl>().ref;