BloombergLP::bsls::ByteOrderUtil::swapBytes

Return the value that results from reversing the order of the bytes in the specified x.

Synopsis

Declared in <bsls_byteorderutil.h>

static
short
swapBytes(short x);

Return Value

value with the byte order of x reversed

Parameters

NameDescription
xvalue whose bytes are reversed