BloombergLP::bsls::ByteOrderUtil

This class provides a namespace for functions used for reversing the byte order of values having integral type.

Synopsis

Declared in <bsls_byteorderutil.h>

struct ByteOrderUtil;

Static Member Functions

NameDescription
swapBytes swapBytes overloads
swapBytes16 Return the value that results from reversing the order of the bytes in the specified x.
swapBytes32 Return the value that results from reversing the order of the bytes in the specified x.
swapBytes64 Return the value that results from reversing the order of the bytes in the specified x.