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

Method Module

importtype.go:72–77  ·  view source on GitHub ↗

Module returns the name in the module this import type is importing

()

Source from the content-addressed store, hash-verified

70
71// Module returns the name in the module this import type is importing
72func (ty *ImportType) Module() string {
73 ptr := C.wasm_importtype_module(ty.ptr())
74 ret := C.GoStringN(ptr.data, C.int(ptr.size))
75 runtime.KeepAlive(ty)
76 return ret
77}
78
79// Name returns the name in the module this import type is importing.
80//

Callers 2

TestImportTypeFunction · 0.95
TestModuleImportsFunction · 0.80

Calls 1

ptrMethod · 0.95

Tested by 2

TestImportTypeFunction · 0.76
TestModuleImportsFunction · 0.64