BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlbb::BlobUtilAsciiDumper Struct Reference

#include <bdlbb_blobutil.h>

Public Member Functions

 BlobUtilAsciiDumper (const Blob *blob)
 
 BlobUtilAsciiDumper (const Blob *blob, int length)
 
 BlobUtilAsciiDumper (const Blob *blob, int offset, int length)
 

Public Attributes

const Blobd_blob_p
 
int d_offset
 
int d_length
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ 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. 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. The behavior is undefined unless 0 <= offset && 0 <= length.

Member Data Documentation

◆ 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: