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

#include <bdlbb_blobutil.h>

Public Member Functions

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

Public Attributes

const Blobd_blob_p
 
int d_offset
 
int d_length
 

Detailed Description

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.

Constructor & Destructor Documentation

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

Member Data Documentation

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