#include <bdlbb_blobutil.h>
Utility for hex dumping a blob to standard output streams. This class has operator<< defined for it, so it can be used, for example, in ball logs.
See bdlbb_blobutil
◆ BlobUtilHexDumper() [1/3]
| bdlbb::BlobUtilHexDumper::BlobUtilHexDumper |
( |
const Blob * |
blob | ) |
|
|
inlineexplicit |
Create a hex dumper for the specified blob that hex dumps the entire blob to the output stream when passed to operator<<. See operator<<(bsl::ostream&, const BlobUtilHexDumper&) for details.
◆ BlobUtilHexDumper() [2/3]
| bdlbb::BlobUtilHexDumper::BlobUtilHexDumper |
( |
const Blob * |
blob, |
|
|
int |
length |
|
) |
| |
|
inline |
Create a hex dumper for the specified blob that hex dumps the first min(length, blob->length()) bytes of the blob to the output stream when passed to operator<<. See operator<<(bsl::ostream&, const BlobUtilHexDumper&) for details.
- Precondition
- The behavior is undefined unless
0 <= length.
◆ BlobUtilHexDumper() [3/3]
| bdlbb::BlobUtilHexDumper::BlobUtilHexDumper |
( |
const Blob * |
blob, |
|
|
int |
offset, |
|
|
int |
length |
|
) |
| |
|
inline |
Create a hex dumper for the specified blob that hex dumps the bytes of the blob starting with the min(offset, blob->length()) byte and until min(offset + length, blob->length()) byte to the output stream when passed to operator<<. See operator<<(bsl::ostream&, const BlobUtilHexDumper&) for details.
- Precondition
- The behavior is undefined unless
0 <= offset && 0 <= length.
◆ d_blob_p
| const Blob* bdlbb::BlobUtilHexDumper::d_blob_p |
◆ d_length
| int bdlbb::BlobUtilHexDumper::d_length |
◆ d_offset
| int bdlbb::BlobUtilHexDumper::d_offset |
The documentation for this struct was generated from the following file: