Close will deallocate this extern's state explicitly. For more information see the documentation for engine.Close()
()
| 37 | // |
| 38 | // For more information see the documentation for engine.Close() |
| 39 | func (e *Extern) Close() { |
| 40 | if e._ptr == nil { |
| 41 | return |
| 42 | } |
| 43 | runtime.SetFinalizer(e, nil) |
| 44 | C.wasmtime_extern_delete(e._ptr) |
| 45 | e._ptr = nil |
| 46 | |
| 47 | } |
| 48 | |
| 49 | // Type returns the type of this export |
| 50 | func (e *Extern) Type(store Storelike) *ExternType { |