Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio::chain::webassembly::detail Namespace Reference

Classes

struct  is_whitelisted_legacy_type
 
struct  is_whitelisted_type
 
struct  is_whitelisted_type< vm::argument_proxy< T *, 0 > >
 
struct  is_whitelisted_type< vm::span< T > >
 

Functions

template<typename T , std::size_t A>
constexpr std::integral_constant< bool, A !=0 > is_legacy_ptr (legacy_ptr< T, A >)
 
template<typename T >
constexpr std::false_type is_legacy_ptr (T)
 
template<typename T , std::size_t A>
constexpr std::integral_constant< bool, A !=0 > is_legacy_span (legacy_span< T, A >)
 
template<typename T >
constexpr std::false_type is_legacy_span (T)
 
template<typename T >
vm::span< const char > to_span (const vm::argument_proxy< T * > &val)
 
template<typename T >
vm::span< Tto_span (const vm::span< T > &val)
 

Variables

template<typename T >
constexpr bool is_softfloat_type_v
 
template<typename T >
constexpr bool is_wasm_arithmetic_type_v
 

Function Documentation

◆ is_legacy_ptr() [1/2]

template<typename T , std::size_t A>
std::integral_constant< bool, A !=0 > sysio::chain::webassembly::detail::is_legacy_ptr ( legacy_ptr< T, A > )
constexpr

◆ is_legacy_ptr() [2/2]

template<typename T >
std::false_type sysio::chain::webassembly::detail::is_legacy_ptr ( T )
constexpr

◆ is_legacy_span() [1/2]

template<typename T , std::size_t A>
std::integral_constant< bool, A !=0 > sysio::chain::webassembly::detail::is_legacy_span ( legacy_span< T, A > )
constexpr

◆ is_legacy_span() [2/2]

template<typename T >
std::false_type sysio::chain::webassembly::detail::is_legacy_span ( T )
constexpr

◆ to_span() [1/2]

template<typename T >
vm::span< const char > sysio::chain::webassembly::detail::to_span ( const vm::argument_proxy< T * > & val)

Definition at line 123 of file preconditions.hpp.

123 {
124 return {static_cast<const char*>(val.get_original_pointer()), sizeof(T)};
125 }
#define T(meth, val, expected)
Here is the caller graph for this function:

◆ to_span() [2/2]

template<typename T >
vm::span< T > sysio::chain::webassembly::detail::to_span ( const vm::span< T > & val)

Definition at line 128 of file preconditions.hpp.

128{ return val; }

Variable Documentation

◆ is_softfloat_type_v

template<typename T >
bool sysio::chain::webassembly::detail::is_softfloat_type_v
inlineconstexpr
Initial value:
=
std::is_same_v<T, float32_t> || std::is_same_v<T, float64_t> || std::is_same_v<T, float128_t>

Definition at line 22 of file preconditions.hpp.

◆ is_wasm_arithmetic_type_v

template<typename T >
bool sysio::chain::webassembly::detail::is_wasm_arithmetic_type_v
inlineconstexpr
Initial value:
=
is_softfloat_type_v<T> || std::is_integral_v<T>

Definition at line 26 of file preconditions.hpp.