Wasmtime
component/val.hh File Reference
#include <wasmtime/conf.h>
#include <assert.h>
#include <memory>
#include <optional>
#include <string_view>
#include <utility>
#include <vector>
#include <wasmtime/component/val.h>
#include <wasmtime/store.hh>

Go to the source code of this file.

Data Structures

class  wasmtime::component::RecordField
 Class representing a field in a record value. More...
 
class  wasmtime::component::Record
 Class representing a component model record, a list of name/value pairs. More...
 
class  wasmtime::component::List
 Class representing a component model list, a sequence of values. More...
 
class  wasmtime::component::Tuple
 Class representing a component model tuple. More...
 
class  wasmtime::component::Variant
 Class representing a component model variant value. More...
 
class  wasmtime::component::WitOption
 Class representing a component model option value. More...
 
class  wasmtime::component::WitResult
 Class representing a component model result value. More...
 
class  wasmtime::component::Flag
 Class representing a component model flags value. More...
 
class  wasmtime::component::Flags
 Class representing a component model flags value. More...
 
class  wasmtime::component::ResourceType
 
class  wasmtime::component::ResourceAny
 
class  wasmtime::component::ResourceHost
 
class  wasmtime::component::Val
 Class representing an instantiated WebAssembly component. More...
 

Macros

#define VAL_REPR(name, raw_type)
 

Functions

const Val * wasmtime::component::detail::val_from_capi (const wasmtime_component_val_t *capi)
 

Macro Definition Documentation

◆ VAL_REPR

#define VAL_REPR (   name,
  raw_type 
)

Internal helper macro to define ownership-semanitcs for C++ types based on a C type as a single member where operations are defined in terms of transfer, copy, and destroy functions.

Function Documentation

◆ val_from_capi()

const Val * wasmtime::component::detail::val_from_capi ( const wasmtime_component_val_t capi)
inline

Internal helper to convert from C to Val, sort of a forward-declaration of Val::from_capi which I don't know how to otherwise forward-declare.