Class that contains helper methods.
More...
#include <client_helper.h>
Class that contains helper methods.
◆ endianSwap()
void iotex::Helpers::endianSwap |
( |
uint8_t * |
pData, |
|
|
uint64_t |
size |
|
) |
| |
Swaps the endianness of a byte array.
- Parameters
-
pData | A pointer to the data |
size | The size of the data in bytes |
◆ GetResultString()
const char * iotex::Helpers::GetResultString |
( |
ResultCode |
code | ) |
|
Gets the result strinf value of a ResultCode.
- Parameters
-
- Returns
- [out] const char*
◆ setGlobalLogLevel()
Sets the log level globally. Overrides log level modules if they are of a higher level.
- Parameters
-
◆ setModuleLogLevel()
void iotex::Helpers::setModuleLogLevel |
( |
const std::string & |
module, |
|
|
IotexLogLevel |
level |
|
) |
| |
Set the Mlog level for a module. Note that the global lov level can override a module log level.
- Parameters
-
◆ vectorToHexString()
void iotex::Helpers::vectorToHexString |
( |
std::vector< uint8_t > & |
data, |
|
|
IotexString & |
out |
|
) |
| |
Gets the hex string representation of a vector of bytes.
- Parameters
-
The documentation for this class was generated from the following files: