8#ifndef TRITON_CORE_UTIL_H
9#define TRITON_CORE_UTIL_H
15#include <triton/config.hpp>
59 return static_cast<T
>(value);
65 return static_cast<T
>(value);
72 static_assert(not std::is_same<T, T>::value,
"cast have no implementation for this type");
std::uint8_t uint8
unisgned 8-bits
TRITON_EXPORT void fromUintToBuffer(triton::uint80 value, triton::uint8 *buffer)
Inject the value into the buffer. Make sure that the buffer contains at least 10 allocated bytes.
constexpr T cast(const triton::uint512 &value)
Casts an triton::uint512 to T.
std::string toString(const T &obj)
Converts an object to a string.