31 #ifndef _SCC_ENCODE_HEX_H
32 #define _SCC_ENCODE_HEX_H
37 namespace scc::encode {
64 static void bin_to_hex(
const std::vector<char>&, std::string&,
bool =
true);
75 static void bin_to_hex(
const void*,
size_t, std::string&,
bool =
true);
86 static std::string
bin_to_hex(
const std::vector<char>&,
bool =
true);
98 static std::string
bin_to_hex(
const void*,
size_t,
bool =
true);
107 static void hex_to_bin(
const std::string&, std::vector<char>&);
119 static std::string
bin_to_hexstr(
const std::vector<char>&,
const std::string& =
"",
int limit=-1,
const std::string& =
" +more",
bool =
true);
133 static std::string
bin_to_hexstr(
const void*,
size_t,
const std::string& =
"",
int limit=-1,
const std::string& =
" +more",
bool =
true);
static void bin_to_hex(const std::vector< char > &, std::string &, bool=true)
Encode to hex from binary.
static std::string bin_to_hexstr(const std::vector< char > &, const std::string &="", int limit=-1, const std::string &=" +more", bool=true)
Binary to human readable string.
static void hex_to_bin(const std::string &, std::vector< char > &)
Decode from hex to binary.