Wasmtime
wasmtime_context Struct Reference

An interior pointer into a wasmtime_store_t which is used as "context" for many functions. More...

#include <store.h>

Detailed Description

An interior pointer into a wasmtime_store_t which is used as "context" for many functions.

This context pointer is used pervasively throught Wasmtime's API. This can be acquired from wasmtime_store_context or wasmtime_caller_context. The context pointer for a store is the same for the entire lifetime of a store, so it can safely be stored adjacent to a wasmtime_store_t itself.

Usage of a wasmtime_context_t must not outlive the original wasmtime_store_t. Additionally wasmtime_context_t can only be used in situations where it has explicitly been granted access to doing so. For example finalizers cannot use wasmtime_context_t because they are not given access to it.


The documentation for this struct was generated from the following file: