#ifndef TOOLS_PPRINT_H_ #define TOOLS_PPRINT_H_ #include #include using namespace std; inline void pprint_bytes(const char* label, unsigned char* bytes, int len, ostream& out = cout) { out << label << ": "; for (int j = 0; j < len; j++) out << setfill('0') << setw(2) << hex << (int) bytes[j]; out << dec << endl; } #endif