Add buf_to_hexstring

This commit is contained in:
RipleyTom 2023-03-17 13:43:23 +01:00 committed by Megamouse
parent 02a53c582c
commit c98158b460
7 changed files with 43 additions and 110 deletions

View file

@ -177,4 +177,13 @@ namespace fmt
std::string to_lower(const std::string& string);
bool match(const std::string& source, const std::string& mask);
struct buf_to_hexstring
{
buf_to_hexstring(const u8* buf, usz len)
: buf(buf), len(len) {}
const u8* buf;
usz len;
};
}