libTriton version 1.0 build 1590
Loading...
Searching...
No Matches
Namespaces | Functions
coreUtils.hpp File Reference
#include <sstream>
#include <string>
#include <type_traits>
#include <triton/config.hpp>
#include <triton/dllexport.hpp>
#include <triton/tritonTypes.hpp>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  triton
 The Triton namespace.
 
namespace  triton::utils
 The Utils namespace.
 

Functions

template<typename T >
std::string triton::utils::toString (const T &obj)
 Converts an object to a string.
 
TRITON_EXPORT void triton::utils::fromUintToBuffer (triton::uint80 value, triton::uint8 *buffer)
 Inject the value into the buffer. Make sure that the buffer contains at least 10 allocated bytes.
 
template<typename T >
constexpr T triton::utils::cast (const triton::uint512 &value)
 Casts an triton::uint512 to T.
 
template<typename T >
triton::utils::cast (const triton::uint8 *buffer)
 Returns the value located into the buffer.
 
template<>
TRITON_EXPORT triton::uint80 triton::utils::cast (const triton::uint8 *buffer)
 
template<>
TRITON_EXPORT triton::uint128 triton::utils::cast (const triton::uint8 *buffer)
 
template<>
TRITON_EXPORT triton::uint256 triton::utils::cast (const triton::uint8 *buffer)
 
template<>
TRITON_EXPORT triton::uint512 triton::utils::cast (const triton::uint8 *buffer)
 
template<>
TRITON_EXPORT triton::uint80 triton::utils::cast (const triton::uint512 &value)
 Cast an uint512 to an uint80 according to the multiprecision library.
 
template<>
TRITON_EXPORT triton::uint512 triton::utils::cast (const triton::uint80 &value)
 Cast an uint512 to an uint80 according to the multiprecision library.