Implementation of the `Storelike` interface
()
| 128 | |
| 129 | // Implementation of the `Storelike` interface |
| 130 | func (store *Store) Context() *C.wasmtime_context_t { |
| 131 | ret := C.wasmtime_store_context(store.ptr()) |
| 132 | maybeGC() |
| 133 | runtime.KeepAlive(store) |
| 134 | return ret |
| 135 | } |
| 136 | |
| 137 | // Data returns arbitrary data attached to [Store] via [NewStoreWithData]. |
| 138 | // If [Store] was created with [NewStore], this function returns nil. |