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

Method Close

module.go:39–47  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

37//
38// For more information see the documentation for engine.Close()
39func (m *Module) Close() {
40 if m._ptr == nil {
41 return
42 }
43 runtime.SetFinalizer(m, nil)
44 C.wasmtime_module_delete(m._ptr)
45 m._ptr = nil
46
47}
48
49// Imports returns a list of `ImportType` which are the items imported by
50// this module and are required for instantiation

Callers 3

mkModuleFunction · 0.95
TestModuleImportsFunction · 0.95
mainFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestModuleImportsFunction · 0.76