instantiate

external fun <S : StructType> instantiate(ctor: StructCtor<S>): S(source)

Instantiate a new instance of S.


external fun <S : StructType> instantiate(ctor: StructCtor<S>, pointer: WasmPointer): S(source)

Instantiate a new instance of S wrapping C-struct pointer.