[#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`. == Synopsis Declared in `<bsls_byteorderutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static long swapBytes(long x); ---- == Return Value value with the byte order of `x` reversed == Parameters [cols="1,4"] |=== | Name| Description | *x* | value whose bytes are reversed |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#