class Wasmer::Value

Overview

WebAssembly computations manipulate values of basic value types:

See Also Specification: https://webassembly.github.io/spec/core/exec/runtime.html#values

Defined in:

wasmer/value.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(val : Number, kind : ValueKind) #

[View source]
def self.new(value : Int) #

[View source]
def self.new(value : Float) #

[View source]

Instance Method Detail

def as_f : Float64 #

Returns the Value's value as a native Crystal Float64 raises otherwise


[View source]
def as_f32 : Float32 #

Returns the Value's value as a native Crystal Float32 raises otherwise


[View source]
def as_i : Int32 #

Returns the Value's value as a native Crystal Int32 raises otherwise


[View source]
def as_i64 : Int64 #

Returns the Value's value as a native Crystal Int64 raises otherwise


[View source]
def kind #

[View source]
def unwrap : Number #

Returns the Value's value as a native Crystal value


[View source]