#include <bdlbb_blobutil.h>
Utility for ascii 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
◆ BlobUtilAsciiDumper() [1/3]
| bdlbb::BlobUtilAsciiDumper::BlobUtilAsciiDumper |
( |
const Blob * |
blob | ) |
|
|
inlineexplicit |
Create an ascii dumper for the specified blob that dumps the entire blob to the output stream when passed to operator<<. See operator<<(bsl::ostream&, const BlobUtilAsciiDumper&) for details.
◆ BlobUtilAsciiDumper() [2/3]
| bdlbb::BlobUtilAsciiDumper::BlobUtilAsciiDumper |
( |
const Blob * |
blob, |
|
|
int |
length |
|
) |
| |
|
inline |
Create an ascii dumper for the specified blob that ascii dumps the first min(length, blob->length()) bytes of the blob to the output stream when passed to operator<<. See operator<<(bsl::ostream&, const BlobUtilAsciiDumper&) for details.
- Precondition
- The behavior is undefined unless
0 <= length.
◆ BlobUtilAsciiDumper() [3/3]
| bdlbb::BlobUtilAsciiDumper::BlobUtilAsciiDumper |
( |
const Blob * |
blob, |
|
|
int |
offset, |
|
|
int |
length |
|
) |
| |
|
inline |
Create a hex dumper for the specified blob that ascii 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 BlobUtilAsciiDumper&) for details.
- Precondition
- The behavior is undefined unless
0 <= offset && 0 <= length.
◆ d_blob_p
| const Blob* bdlbb::BlobUtilAsciiDumper::d_blob_p |
◆ d_length
| int bdlbb::BlobUtilAsciiDumper::d_length |
◆ d_offset
| int bdlbb::BlobUtilAsciiDumper::d_offset |
The documentation for this struct was generated from the following file: