[#BloombergLP-bdlb-Print-hexDump-00]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/Print.adoc[Print]::hexDump
:relfileprefix: ../../../
:mrdocs:

Print multiple buffers in hexadecimal format to a stream&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::ostream&
hexDump(
    std::ostream& stream,
    xref:bsl/pair-0b.adoc[bsl::pair&lt;char const*, int&gt;]* buffers,
    int numBuffers);
----

== Description

Print to the specified `stream` the specified `numBuffers` buffers supplied by specified `buffers` in a hexadecimal representation (16 chars per line) followed by the ASCII representation&period; Return a reference providing modifiable access to `stream`&period; The array of buffers are supplied as a `bsl&colon;&colon;pair&lt;const char&ast;, int&gt; &ast;` where the first element is a pointer to the data, and the second element is the length of the buffer&period; The behavior is undefined unless `0 &lt;&equals; numBuffers`&period; Note that the contents of the buffers are concatenated and boundaries between buffers are not demarcated&period;

== Return Value

a reference to `stream`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *stream*
| the output stream
| *buffers*
| array of buffer pointer&sol;length pairs
| *numBuffers*
| number of entries in `buffers`
|===


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