Close will deallocate this type's state explicitly. For more information see the documentation for engine.Close()
()
| 61 | // |
| 62 | // For more information see the documentation for engine.Close() |
| 63 | func (ty *TableType) Close() { |
| 64 | if ty._ptr == nil || ty._owner != nil { |
| 65 | return |
| 66 | } |
| 67 | runtime.SetFinalizer(ty, nil) |
| 68 | C.wasm_tabletype_delete(ty._ptr) |
| 69 | ty._ptr = nil |
| 70 | } |
| 71 | |
| 72 | // Element returns the type of value stored in this table |
| 73 | func (ty *TableType) Element() *ValType { |