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

Method Name

exporttype.go:70–75  ·  view source on GitHub ↗

Name returns the name in the module this export type is exporting

()

Source from the content-addressed store, hash-verified

68
69// Name returns the name in the module this export type is exporting
70func (ty *ExportType) Name() string {
71 ptr := C.wasm_exporttype_name(ty.ptr())
72 ret := C.GoStringN(ptr.data, C.int(ptr.size))
73 runtime.KeepAlive(ty)
74 return ret
75}
76
77// Type returns the type of item this export type expects
78func (ty *ExportType) Type() *ExternType {

Callers 1

TestExportTypeFunction · 0.95

Calls 1

ptrMethod · 0.95

Tested by 1

TestExportTypeFunction · 0.76