MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime-go / Close

Method Close

importtype.go:62–69  ·  view source on GitHub ↗

Close will deallocate this type's state explicitly. For more information see the documentation for engine.Close()

()

Source from the content-addressed store, hash-verified

60//
61// For more information see the documentation for engine.Close()
62func (ty *ImportType) Close() {
63 if ty._ptr == nil || ty._owner != nil {
64 return
65 }
66 runtime.SetFinalizer(ty, nil)
67 C.wasm_importtype_delete(ty._ptr)
68 ty._ptr = nil
69}
70
71// Module returns the name in the module this import type is importing
72func (ty *ImportType) Module() string {

Callers 1

mkImportTypeFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected