[#BloombergLP-bdlb-PrintStringHexDumper]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::PrintStringHexDumper
:relfileprefix: ../../
:mrdocs:

Utility for hex dumping a blob to standard output streams&period; This class has `operator&lt;&lt;` defined for it, so it can be used as follows&colon; &grave; bsl&colon;&colon;vector&lt;char&gt; blob&semi; blob&period;resize(1024)&semi;

== Synopsis

Declared in `&lt;bdlb&lowbar;print&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct PrintStringHexDumper;
----

== Description

&sol;&sol; &period;&period;&period; fill up the blob with some data &period;&period;&period;

bsl&colon;&colon;cout &lt;&lt; PrintStringHexDumper(blob&period;data(), blob&period;size()) &lt;&lt; bsl&colon;&colon;endl&semi; &grave;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlb/PrintStringHexDumper/2constructor.adoc[`PrintStringHexDumper`]         [.small]#[constructor]#
| Create a `PrintStringHexDumper` object that can insert to an output stream a formated (possibly multi&hyphen;lined) hexadecimal representation the specified `data` of the specified `length`&period;
|===


== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlb/PrintStringHexDumper/d_data_p.adoc[`d&lowbar;data&lowbar;p`] 
| address of data to hex dump
| xref:BloombergLP/bdlb/PrintStringHexDumper/d_length.adoc[`d&lowbar;length`] 
| length in bytes of data to hex dump
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
