|
|
|
@ -366,10 +366,11 @@ inline const char* getIoSeparator(int ioMode) |
|
|
|
|
return (ioMode & (IoArray | IoArrayRaw | IoSerialize | IoSerializeHexStr)) ? "" : " "; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
inline void dump(const char *s, size_t n) |
|
|
|
|
inline void dump(const void *buf, size_t n) |
|
|
|
|
{ |
|
|
|
|
const uint8_t *s = (const uint8_t *)buf; |
|
|
|
|
for (size_t i = 0; i < n; i++) { |
|
|
|
|
printf("%02x ", (uint8_t)s[i]); |
|
|
|
|
printf("%02x ", s[i]); |
|
|
|
|
} |
|
|
|
|
printf("\n"); |
|
|
|
|
} |
|
|
|
|