11#ifndef TLX_STRING_HEXDUMP_HEADER
12#define TLX_STRING_HEXDUMP_HEADER
35std::string
hexdump(
const void*
const data,
size_t size);
43std::string
hexdump(
const std::string& str);
51template <
typename Type>
62std::string
hexdump(
const std::vector<char>& data);
70std::string
hexdump(
const std::vector<uint8_t>& data);
81 const std::string& str,
const std::string& var_name =
"name");
93std::string
hexdump_lc(
const void*
const data,
size_t size);
101std::string
hexdump_lc(
const std::string& str);
109template <
typename Type>
120std::string
hexdump_lc(
const std::vector<char>& data);
128std::string
hexdump_lc(
const std::vector<uint8_t>& data);
std::string hexdump_lc(const void *const data, size_t size)
Dump a (binary) string as a sequence of lowercase hexadecimal pairs.
std::string hexdump_lc_type(const Type &t)
Dump a (binary) item 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(const void *const data, size_t size)
Dump a (binary) string as a sequence of uppercase hexadecimal pairs.
std::string hexdump_type(const Type &t)
Dump a (binary) item as a sequence of uppercase hexadecimal pairs.