Close will deallocate this type's state explicitly. For more information see the documentation for engine.Close()
()
| 60 | // |
| 61 | // For more information see the documentation for engine.Close() |
| 62 | func (ty *ImportType) Close() { |
| 63 | if ty._ptr == nil || ty._owner != nil { |
| 64 | return |
| 65 | } |
| 66 | runtime.SetFinalizer(ty, nil) |
| 67 | C.wasm_importtype_delete(ty._ptr) |
| 68 | ty._ptr = nil |
| 69 | } |
| 70 | |
| 71 | // Module returns the name in the module this import type is importing |
| 72 | func (ty *ImportType) Module() string { |