Print multiple buffers in hexadecimal format to a stream.
Declared in <bdlb_print.h>
static
std::ostream&
hexDump(
std::ostream& stream,
bsl::pair<char const*, int>* buffers,
int numBuffers);
Print to the specified stream the specified numBuffers buffers supplied by specified buffers in a hexadecimal representation (16 chars per line) followed by the ASCII representation. Return a reference providing modifiable access to stream. The array of buffers are supplied as a bsl::pair<const char*, int> * where the first element is a pointer to the data, and the second element is the length of the buffer. The behavior is undefined unless 0 <= numBuffers. Note that the contents of the buffers are concatenated and boundaries between buffers are not demarcated.
a reference to stream
| Name | Description |
|---|---|
| stream | the output stream |
| buffers | array of buffer pointer/length pairs |
| numBuffers | number of entries in buffers |