Type¶
Entities for represent values or objects used within WasmVM
Types out of WebAssembly specification (extended) are denoted as [ext]
Fundamental types¶
Represent basic values or date references
-
using WasmVM::i32_t = int32_t¶
32-bit signed integer
-
using WasmVM::i64_t = int64_t¶
64-bit signed integer
-
using WasmVM::f32_t = float¶
32-bit (single precision) floating-point number
-
using WasmVM::f64_t = double¶
64-bit (double precision) floating-point number
-
using WasmVM::externref_t = void*¶
Nullable reference of external objects
-
using WasmVM::i8_t = int8_t¶
[ext] 8-bit signed integer
-
using WasmVM::u8_t = uint8_t¶
[ext] 8-bit unsigned integer
-
using WasmVM::i16_t = int16_t¶
[ext] 16-bit signed integer
-
using WasmVM::u16_t = uint16_t¶
[ext] 16-bit unsigned integer
-
using WasmVM::u32_t = uint32_t¶
[ext] 32-bit unsigned integer
-
using WasmVM::u64_t = uint64_t¶
[ext] 64-bit unsigned integer
-
using WasmVM::byte_t = std::byte¶
[ext] Single byte
-
using WasmVM::align_t = uint8_t¶
[ext] Memory alignment
Constants¶
Enumerations¶
Object types¶
-
using WasmVM::Value = std::variant<i32_t, i64_t, f32_t, f64_t, funcref_t, externref_t>¶
General type of value
-
using WasmVM::Ref = std::variant<funcref_t, externref_t>¶
Reference type
-
struct WasmVM::Limits¶
Limits of ranged objects or values
-
struct WasmVM::FuncType¶
Declarational type (signature) of function
-
struct WasmVM::TableType¶
Declarational type (signature) of table
-
struct WasmVM::GlobalType¶
Declarational type (signature) of global
-
struct WasmVM::ExternVal¶
Declarational type (signature) of external values or objects
-
enum ExternType¶
-
enumerator Func¶
Indicate the external value is function
-
enumerator Mem¶
Indicate the external value is memory
-
enumerator Table¶
Indicate the external value is table
-
enumerator Global¶
Indicate the external value is global
-
ExternType type¶
-
enum ExternType¶