BloombergLP::bdlb::Print::hexDump

hexDump overloads

Synopses

Declared in <bdlb_print.h>

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.

static
std::ostream&
hexDump(
    std::ostream& stream,
    bsl::pair<char const*, int>* buffers,
    int numBuffers);
» more...

Print in hexadecimal format the contents of the specified buffer of the specified length to the specified stream, and return a reference providing modifiable access to stream. The behavior is undefined unless 0 <= length.

static
std::ostream&
hexDump(
    std::ostream& stream,
    char const* buffer,
    int length);
» more...