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

Method Exports

module.go:60–65  ·  view source on GitHub ↗

Exports returns a list of `ExportType` which are the items that will be exported by this module after instantiation.

()

Source from the content-addressed store, hash-verified

58// Exports returns a list of `ExportType` which are the items that will be
59// exported by this module after instantiation.
60func (m *Module) Exports() []*ExportType {
61 exports := &exportTypeList{}
62 C.wasmtime_module_exports(m.ptr(), &exports.vec)
63 runtime.KeepAlive(m)
64 return exports.mkGoList()
65}
66
67type importTypeList struct {
68 vec C.wasm_importtype_vec_t

Callers 2

TestModuleExportsFunction · 0.95
TestMultiMemoryExportedFunction · 0.95

Calls 2

ptrMethod · 0.95
mkGoListMethod · 0.95

Tested by 2

TestModuleExportsFunction · 0.76
TestMultiMemoryExportedFunction · 0.76