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

Struct Caller

func.go:27–32  ·  view source on GitHub ↗

Caller is provided to host-defined functions when they're invoked from WebAssembly. A `Caller` can be used for `Storelike` arguments to allow recursive execution or creation of wasm objects. Additionally `Caller` can be used to learn about the exports of the calling instance.

Source from the content-addressed store, hash-verified

25// or creation of wasm objects. Additionally `Caller` can be used to learn about
26// the exports of the calling instance.
27type Caller struct {
28 // Note that unlike other structures in these bindings this is named `ptr`
29 // instead of `_ptr` because no finalizer is configured with `Caller` so it's
30 // ok to access this raw value.
31 ptr *C.wasmtime_caller_t
32}
33
34// NewFunc creates a new `Func` with the given `ty` which, when called, will call `f`
35//

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected