tlx
Loading...
Searching...
No Matches
hexdump.cpp File Reference
#include <tlx/string/hexdump.hpp>
#include <cstdint>
#include <sstream>
#include <stdexcept>

Go to the source code of this file.

Namespaces

namespace  tlx
 

Functions

Hexdump Methods
std::string hexdump (const void *const data, size_t size)
 Dump a (binary) string as a sequence of uppercase hexadecimal pairs.
 
std::string hexdump (const std::string &str)
 Dump a (binary) string as a sequence of uppercase hexadecimal pairs.
 
std::string hexdump (const std::vector< char > &data)
 Dump a char vector as a sequence of uppercase hexadecimal pairs.
 
std::string hexdump (const std::vector< std::uint8_t > &data)
 Dump a uint8_t vector as a sequence of uppercase hexadecimal pairs.
 
std::string hexdump_sourcecode (const std::string &str, const std::string &var_name="name")
 Dump a (binary) string into a C source code snippet.
 
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 (const std::string &str)
 Dump a (binary) string as a sequence of lowercase hexadecimal pairs.
 
std::string hexdump_lc (const std::vector< char > &data)
 Dump a char vector as a sequence of lowercase hexadecimal pairs.
 
std::string hexdump_lc (const std::vector< std::uint8_t > &data)
 Dump a uint8_t vector as a sequence of lowercase hexadecimal pairs.
 
std::string parse_hexdump (const std::string &str)
 Read a string as a sequence of hexadecimal pairs.