17 out <<
"Byte: 0 1 2 3 4 5 6 7\n";
23 for (
unsigned int i = 0;
i < (len/8);
i++) {
26 for (pos = 0; pos < 8*3; pos += 3) {
27 sprintf (&left[pos],
"%2.2x ", ((
unsigned char*)data)[c]);
28 sprintf (&right[rpos],
"%1c", ((data[c] > 32) && (data[c] < 127)) ? data[c]:
'.' );
33 out << setw(4) << setfill(
'0') << c-8 <<
": " << left <<
" || "
std::string dumpFrame(unsigned char *data, unsigned int len)
char data[epos_bytes_allocation]