#include <Utility.h>
|
| static void | error (std::runtime_error &message, bool fatal=false) |
| |
| static void | error (std::string message, bool fatal=false) |
| |
| static bool | closeTo (double a, double b, double error=0.001) |
| |
| static bool | isBigEndian () |
| |
| static int | nthOccurrence (const std::wstring &str, const std::wstring &findMe, int nth) |
| |
| static std::vector< uint8_t > | getBytes (uint64_t value, int width, bool isBigEndian=false) |
| |
| static uint64_t | getValue (std::vector< uint8_t > bytes, bool isBigEndian=false) |
| |
◆ closeTo()
| static bool closeTo |
( |
double |
a, |
|
|
double |
b, |
|
|
double |
error = 0.001 |
|
) |
| |
|
static |
◆ error() [1/2]
| static void error |
( |
std::runtime_error & |
message, |
|
|
bool |
fatal = false |
|
) |
| |
|
static |
◆ error() [2/2]
| static void error |
( |
std::string |
message, |
|
|
bool |
fatal = false |
|
) |
| |
|
inlinestatic |
◆ getBytes()
| static std::vector<uint8_t> getBytes |
( |
uint64_t |
value, |
|
|
int |
width, |
|
|
bool |
isBigEndian = false |
|
) |
| |
|
static |
◆ getValue()
| static uint64_t getValue |
( |
std::vector< uint8_t > |
bytes, |
|
|
bool |
isBigEndian = false |
|
) |
| |
|
static |
◆ isBigEndian()
| static bool isBigEndian |
( |
| ) |
|
|
static |
◆ nthOccurrence()
| static int nthOccurrence |
( |
const std::wstring & |
str, |
|
|
const std::wstring & |
findMe, |
|
|
int |
nth |
|
) |
| |
|
static |
The documentation for this class was generated from the following file: