Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bytecodealliance
GitHub Repository: bytecodealliance/wasmtime
Path: blob/main/docs/examples-anyref.md
2452 views

Working with anyref

You can also browse this source code online and clone the wasmtime repository to run the example locally:

This example demonstrates using anyref values.

Wasm Source

{{#include ../examples/anyref.wat}}

Host Source

{{#include ../examples/anyref.rs}}
{{#include ../examples/anyref.c}}
{{#include ../examples/anyref.cc}}