MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime-go / Close

Method Close

store.go:120–127  ·  view source on GitHub ↗

Close will deallocate this store's state explicitly. For more information see the documentation for engine.Close()

()

Source from the content-addressed store, hash-verified

118//
119// For more information see the documentation for engine.Close()
120func (store *Store) Close() {
121 if store._ptr == nil {
122 return
123 }
124 runtime.SetFinalizer(store, nil)
125 C.wasmtime_store_delete(store._ptr)
126 store._ptr = nil
127}
128
129// Implementation of the `Storelike` interface
130func (store *Store) Context() *C.wasmtime_context_t {

Callers 3

NewStoreWithDataFunction · 0.95
TestStoreFunction · 0.95
TestFuncCallFunction · 0.95

Calls

no outgoing calls

Tested by 2

TestStoreFunction · 0.76
TestFuncCallFunction · 0.76