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

Method Imports

module.go:51–56  ·  view source on GitHub ↗

Imports returns a list of `ImportType` which are the items imported by this module and are required for instantiation

()

Source from the content-addressed store, hash-verified

49// Imports returns a list of `ImportType` which are the items imported by
50// this module and are required for instantiation
51func (m *Module) Imports() []*ImportType {
52 imports := &importTypeList{}
53 C.wasmtime_module_imports(m.ptr(), &imports.vec)
54 runtime.KeepAlive(m)
55 return imports.mkGoList()
56}
57
58// Exports returns a list of `ExportType` which are the items that will be
59// exported by this module after instantiation.

Callers 1

TestModuleImportsFunction · 0.95

Calls 2

ptrMethod · 0.95
mkGoListMethod · 0.95

Tested by 1

TestModuleImportsFunction · 0.76