[#BloombergLP-bdlb-Print-singleLineHexDump-05]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/Print.adoc[Print]::singleLineHexDump
:relfileprefix: ../../../
:mrdocs:

`singleLineHexDump` overloads

== Synopses

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

Print to the specified `stream` the uppercase hex encoding of the byte sequence defined by the specified `begin` and `end` iterators into the specified `stream`, and return a reference providing modifiable access to `stream`&period; This function insulates clients from its implementation, but unlike the member template version (above), requires random access iterators of type `const char &ast;`&period; The behavior is undefined unless both `begin` and `end` refer to the same block of contiguous memory, and `begin &lt;&equals; end`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::ostream&
xref:BloombergLP/bdlb/Print/singleLineHexDump-0cb.adoc[singleLineHexDump](
    std::ostream& stream,
    char const* begin,
    char const* end);
----

[.small]#xref:BloombergLP/bdlb/Print/singleLineHexDump-0cb.adoc[_» more&period;&period;&period;_]#

Print to the specified `stream` the contents of the specified `buffer` having the specified `length` on a single line, and return a reference to the modifiable `stream`&period; The behavior is undefined unless `0 &lt;&equals; length`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::ostream&
xref:BloombergLP/bdlb/Print/singleLineHexDump-02.adoc[singleLineHexDump](
    std::ostream& stream,
    char const* buffer,
    int length);
----

[.small]#xref:BloombergLP/bdlb/Print/singleLineHexDump-02.adoc[_» more&period;&period;&period;_]#

Print to the specified `stream` the uppercase hex encoding of the byte sequence defined by the specified `begin` and `end` iterators of the parameterized `INPUT&lowbar;ITERATOR` type, and return a reference providing modifiable access to `stream`&period; Note that `INPUT&lowbar;ITERATOR` need not be random&hyphen;access, i&period;e&period;, it need support only increment (`&plus;&plus;`) and equality comparison (`&equals;&equals;`)&period; See the non&hyphen;template version of this function if insulation and&sol;or code bloat are a concern&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class INPUT&lowbar;ITERATOR&gt;
static
std::ostream&
xref:BloombergLP/bdlb/Print/singleLineHexDump-0c5.adoc[singleLineHexDump](
    std::ostream& stream,
    INPUT&lowbar;ITERATOR begin,
    INPUT&lowbar;ITERATOR end);
----

[.small]#xref:BloombergLP/bdlb/Print/singleLineHexDump-0c5.adoc[_» more&period;&period;&period;_]#


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