libTriton version 1.0 build 1590
Loading...
Searching...
No Matches
Functions
Utils
Collaboration diagram for Utils:

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::uint80 triton::utils::cast (const triton::uint512 &value)
 Cast an uint512 to an uint80 according to the multiprecision library.
 

Detailed Description

Function Documentation

◆ cast() [1/4]

template<typename T >
constexpr T triton::utils::cast ( const triton::uint512 value)
constexpr

Casts an triton::uint512 to T.

Casts an triton::uint80 to T.

Definition at line 58 of file coreUtils.hpp.

◆ cast() [2/4]

template<>
TRITON_EXPORT triton::uint80 triton::utils::cast ( const triton::uint80 value)

Cast an uint512 to an uint80 according to the multiprecision library.

Cast an uint512 to an uint80 according to the multiprecision library.

Definition at line 81 of file coreUtils.cpp.

◆ cast() [3/4]

template<typename T >
T triton::utils::cast ( const triton::uint8 buffer)

Returns the value located into the buffer.

Definition at line 69 of file coreUtils.hpp.

◆ cast() [4/4]

template<>
TRITON_EXPORT triton::uint80 triton::utils::cast ( const triton::uint8 buffer)

Definition at line 48 of file coreUtils.cpp.

◆ fromUintToBuffer()

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.

Inject the value into the buffer. Make sure that the buffer contains at least 64 allocated bytes.

Inject the value into the buffer. Make sure that the buffer contains at least 32 allocated bytes.

Inject the value into the buffer. Make sure that the buffer contains at least 16 allocated bytes.

Definition at line 16 of file coreUtils.cpp.

◆ toString()

template<typename T >
std::string triton::utils::toString ( const T &  obj)
inline

Converts an object to a string.

Definition at line 38 of file coreUtils.hpp.