libTriton version 1.0 build 1592
|
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 > | |
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. | |
|
constexpr |
Casts an triton::uint512 to T.
Casts an triton::uint80 to T.
Definition at line 58 of file coreUtils.hpp.
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.
T triton::utils::cast | ( | const triton::uint8 * | buffer | ) |
Returns the value located into the buffer.
Definition at line 69 of file coreUtils.hpp.
TRITON_EXPORT triton::uint80 triton::utils::cast | ( | const triton::uint8 * | buffer | ) |
Definition at line 48 of file coreUtils.cpp.
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.
|
inline |
Converts an object to a string.
Definition at line 38 of file coreUtils.hpp.