[#BloombergLP-bsls-ByteOrderUtil-swapBytes-01c] = 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 int swapBytes(int x); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#