[#BloombergLP-bsls-ByteOrderUtil-swapBytes-06e]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/ByteOrderUtil.adoc[ByteOrderUtil]::swapBytes
:relfileprefix: ../../../
:mrdocs:

Return the value that results from reversing the order of the bytes in the specified `x`&period;

== Synopsis

Declared in `&lt;bsls&lowbar;byteorderutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
long
swapBytes(long x);
----


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