Base Framework
Public Member Functions | Public Attributes | List of all members
WebAssembly::WASMValue Class Reference

#include <base/webassembly/WebAssembly.h>

Public Member Functions

 WASMValue ()
 
 WASMValue (int32)
 
 WASMValue (int64)
 
 WASMValue (float)
 
 WASMValue (double)
 
template<typename TYPE >
TYPE toNative () const
 
template<>
bool toNative () const
 

Public Attributes

Type type = TYPE_i32
 
union {
   int32   i32
 
   int64   i64
 
   float   f32
 
   double   f64
 
}; 
 

Detailed Description

WASM value.

Constructor & Destructor Documentation

◆ WASMValue() [1/5]

WebAssembly::WASMValue::WASMValue ( )

Initialize value.

◆ WASMValue() [2/5]

WebAssembly::WASMValue::WASMValue ( int32  )

Initialize value.

◆ WASMValue() [3/5]

WebAssembly::WASMValue::WASMValue ( int64  )

Initialize value.

◆ WASMValue() [4/5]

WebAssembly::WASMValue::WASMValue ( float  )

Initialize value.

◆ WASMValue() [5/5]

WebAssembly::WASMValue::WASMValue ( double  )

Initialize value.

Member Function Documentation

◆ toNative()

template<typename TYPE >
TYPE WebAssembly::WASMValue::toNative ( ) const

Returns native type.