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

Method Data

func.go:504–510  ·  view source on GitHub ↗

Implementation of [Storelike.Data] for [Caller] See [Store.Data] and [NewStoreWithData] for more.

()

Source from the content-addressed store, hash-verified

502// Implementation of [Storelike.Data] for [Caller]
503// See [Store.Data] and [NewStoreWithData] for more.
504func (c *Caller) Data() interface{} {
505 if c.ptr == nil {
506 panic("cannot use caller after host function returns")
507 }
508
509 return getDataInStore(c).data
510}
511
512// Shim function that's expected to wrap any invocations of WebAssembly from Go
513// itself.

Callers

nothing calls this directly

Calls 1

getDataInStoreFunction · 0.85

Tested by

no test coverage detected