Name returns the name in the module this export type is exporting
()
| 68 | |
| 69 | // Name returns the name in the module this export type is exporting |
| 70 | func (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 |
| 78 | func (ty *ExportType) Type() *ExternType { |