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

Utility for single&hyphen;line hex dumping of a string to output streams&period;

== Synopsis

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

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

== Description

This class has `operator&lt;&lt;` defined for it, so it can be used as follows&colon; &grave; bsl&colon;&colon;string str&semi;

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

bsl&colon;&colon;cout &lt;&lt; PrintStringSingleLineHexDumper(str&period;c&lowbar;str(), str&period;size()) &lt;&lt; bsl&colon;&colon;endl&semi; &grave;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlb/PrintStringSingleLineHexDumper/2constructor.adoc[`PrintStringSingleLineHexDumper`]         [.small]#[constructor]#
| Create a single&hyphen;line hex dumper for the specified `data` of the specified `length`&period;
|===


== Data Members

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



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