Skip to content

Instantly share code, notes, and snippets.

@tomalakgeretkal
tomalakgeretkal / hexdump.cpp
Created June 20, 2019 12:40
hexdump of arbitrary data
#include <string>
#include <string_view>
#include <sstream>
#include <iomanip>
std::string hexdump(const char* buf, std::size_t len)
{
constexpr std::size_t cols = 32;
std::stringstream ss;

Keybase proof

I hereby claim:

To claim this, I am signing this object: