BloombergLP::bsls::ByteOrderUtil::swapBytes

swapBytes overloads

Synopses

Declared in <bsls_byteorderutil.h>

Return the byte-swapped value of the specified x.

static
Types::Int64
swapBytes(Types::Int64 x);
» more...

Same as the preceding overload.

static
Types::Uint64
swapBytes(Types::Uint64 x);
» more...

Return x unchanged; 1-byte integral types have no byte order.

static
bool
swapBytes(bool x);
» more...

Return x unchanged; 1-byte integral types have no byte order.

static
char
swapBytes(char x);
» more...

Return the byte-swapped value of the specified x.

static
char16_t
swapBytes(char16_t x);
» more...

Same as the preceding overload.

static
char32_t
swapBytes(char32_t x);
» more...

Return x unchanged; 1-byte integral types have no byte order.

static
char8_t
swapBytes(char8_t x);
» more...

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

static
int
swapBytes(int x);
» more...

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

static
long
swapBytes(long x);
» more...

Same as the preceding overload.

static
short
swapBytes(short x);
» more...

Return x unchanged; 1-byte integral types have no byte order.

static
signed char
swapBytes(signed char x);
» more...

Return x unchanged; 1-byte integral types have no byte order.

static
unsigned char
swapBytes(unsigned char x);
» more...

Same as the preceding overload.

static
unsigned int
swapBytes(unsigned int x);
» more...

Same as the preceding overload.

static
unsigned long
swapBytes(unsigned long x);
» more...

Same as the preceding overload.

static
unsigned short
swapBytes(unsigned short x);
» more...

Same as the preceding overload.

static
wchar_t
swapBytes(wchar_t x);
» more...