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

Method Data

store.go:139–141  ·  view source on GitHub ↗

Data returns arbitrary data attached to [Store] via [NewStoreWithData]. If [Store] was created with [NewStore], this function returns nil.

()

Source from the content-addressed store, hash-verified

137// Data returns arbitrary data attached to [Store] via [NewStoreWithData].
138// If [Store] was created with [NewStore], this function returns nil.
139func (store *Store) Data() interface{} {
140 return getDataInStore(store).data
141}
142
143// SetEpochDeadline will configure the relative deadline, from the current
144// engine's epoch number, after which wasm code will be interrupted.

Callers

nothing calls this directly

Calls 1

getDataInStoreFunction · 0.85

Tested by

no test coverage detected