12 static void error(std::runtime_error &message,
bool fatal =
false);
14 static void error(std::string message,
bool fatal =
false) {
15 auto err = std::runtime_error(message);
19 static bool closeTo(
double a,
double b,
double error = 0.001);
21 static bool isBigEndian();
23 static int nthOccurrence(
const std::wstring &str,
const std::wstring &findMe,
int nth);
25 static std::vector<uint8_t> getBytes(uint64_t value,
int width,
bool isBigEndian =
false);
27 static uint64_t getValue(std::vector<uint8_t> bytes,
bool isBigEndian =
false);
static void error(std::string message, bool fatal=false)
Definition: Utility.h:14
#define TREEHOPPER_API
Definition: Treehopper.h:17