Close will deallocate this type's state explicitly. For more information see the documentation for engine.Close()
()
| 96 | // |
| 97 | // For more information see the documentation for engine.Close() |
| 98 | func (ty *ValType) Close() { |
| 99 | if ty._ptr == nil || ty._owner != nil { |
| 100 | return |
| 101 | } |
| 102 | runtime.SetFinalizer(ty, nil) |
| 103 | C.wasm_valtype_delete(ty._ptr) |
| 104 | ty._ptr = nil |
| 105 | } |