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

Method Context

store.go:130–135  ·  view source on GitHub ↗

Implementation of the `Storelike` interface

()

Source from the content-addressed store, hash-verified

128
129// Implementation of the `Storelike` interface
130func (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.

Callers 5

SetWasiMethod · 0.95
SetEpochDeadlineMethod · 0.95
GetFuelMethod · 0.95
SetFuelMethod · 0.95
GCMethod · 0.95

Calls 2

ptrMethod · 0.95
maybeGCFunction · 0.70

Tested by

no test coverage detected