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

Function getDataInStore

store.go:152–157  ·  view source on GitHub ↗

Returns the underlying `*storeData` that this store references in Go, used for inserting functions or storing panic data.

(store Storelike)

Source from the content-addressed store, hash-verified

150// Returns the underlying `*storeData` that this store references in Go, used
151// for inserting functions or storing panic data.
152func getDataInStore(store Storelike) *storeData {
153 data := uintptr(C.wasmtime_context_get_data(store.Context()))
154 gStoreLock.Lock()
155 defer gStoreLock.Unlock()
156 return gStoreMap[int(data)]
157}
158
159var (
160 gEngineFuncLock sync.Mutex

Callers 7

DataMethod · 0.85
NewFuncFunction · 0.85
goTrampolineNewFunction · 0.85
WrapFuncFunction · 0.85
goTrampolineWrapFunction · 0.85
DataMethod · 0.85
enterWasmFunction · 0.85

Calls 1

ContextMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…