11 #ifndef TLX_STRING_HEXDUMP_HEADER 12 #define TLX_STRING_HEXDUMP_HEADER 35 std::string
hexdump(
const void*
const data,
size_t size);
43 std::string
hexdump(
const std::string& str);
51 template <
typename Type>
62 std::string
hexdump(
const std::vector<char>& data);
70 std::string
hexdump(
const std::vector<uint8_t>& data);
81 const std::string& str,
const std::string& var_name =
"name");
93 std::string
hexdump_lc(
const void*
const data,
size_t size);
101 std::string
hexdump_lc(
const std::string& str);
109 template <
typename Type>
120 std::string
hexdump_lc(
const std::vector<char>& data);
128 std::string
hexdump_lc(
const std::vector<uint8_t>& data);
148 #endif // !TLX_STRING_HEXDUMP_HEADER std::string hexdump_lc_type(const Type &t)
Dump a (binary) item as a sequence of lowercase hexadecimal pairs.
std::string hexdump_lc(const void *const data, size_t size)
Dump a (binary) string as a sequence of lowercase hexadecimal pairs.
std::string parse_hexdump(const std::string &str)
Read a string as a sequence of hexadecimal pairs.
std::string hexdump_sourcecode(const std::string &str, const std::string &var_name)
Dump a (binary) string into a C source code snippet.
std::string hexdump_type(const Type &t)
Dump a (binary) item as a sequence of uppercase hexadecimal pairs.
std::string hexdump(const void *const data, size_t size)
Dump a (binary) string as a sequence of uppercase hexadecimal pairs.