class Wasmer::Value
- Wasmer::Value
- Reference
- Object
Overview
WebAssembly computations manipulate values of basic value types:
- Integer (32 or 64 bit width)
- Floating-point (32 or 64 bit width)
- Vectors (128 bits, with 32 or 64 bit lanes)
See Also Specification: https://webassembly.github.io/spec/core/exec/runtime.html#values
Defined in:
wasmer/value.crConstructors
Instance Method Summary
-
#as_f : Float64
Returns the Value's value as a native Crystal Float64 raises otherwise
-
#as_f32 : Float32
Returns the Value's value as a native Crystal Float32 raises otherwise
-
#as_i : Int32
Returns the Value's value as a native Crystal Int32 raises otherwise
-
#as_i64 : Int64
Returns the Value's value as a native Crystal Int64 raises otherwise
- #kind
-
#unwrap : Number
Returns the Value's value as a native Crystal value