Quick Links:

bal | bbl | bdl | bsl

Static Public Member Functions

bsls::ByteOrderUtil Struct Reference

#include <bsls_byteorderutil.h>

List of all members.

Static Public Member Functions

static bool swapBytes (bool x)
static char swapBytes (char x)
static unsigned char swapBytes (unsigned char x)
static signed char swapBytes (signed char x)
static wchar_t swapBytes (wchar_t x)
static short swapBytes (short x)
static unsigned short swapBytes (unsigned short x)
static char16_t swapBytes (char16_t x)
static char32_t swapBytes (char32_t x)
static int swapBytes (int x)
static unsigned int swapBytes (unsigned int x)
static long swapBytes (long x)
static unsigned long swapBytes (unsigned long x)
static Types::Uint64 swapBytes (Types::Uint64 x)
static Types::Int64 swapBytes (Types::Int64 x)
static unsigned short swapBytes16 (unsigned short x)
static unsigned int swapBytes32 (unsigned int x)
static Types::Uint64 swapBytes64 (Types::Uint64 x)

Detailed Description

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

See Component bsls_byteorderutil


Member Function Documentation

static bool bsls::ByteOrderUtil::swapBytes ( bool  x  )  [static]
static char bsls::ByteOrderUtil::swapBytes ( char  x  )  [static]
static unsigned char bsls::ByteOrderUtil::swapBytes ( unsigned char  x  )  [static]
static signed char bsls::ByteOrderUtil::swapBytes ( signed char  x  )  [static]
static wchar_t bsls::ByteOrderUtil::swapBytes ( wchar_t  x  )  [static]
static short bsls::ByteOrderUtil::swapBytes ( short  x  )  [static]
static unsigned short bsls::ByteOrderUtil::swapBytes ( unsigned short  x  )  [static]
static char16_t bsls::ByteOrderUtil::swapBytes ( char16_t  x  )  [static]
static char32_t bsls::ByteOrderUtil::swapBytes ( char32_t  x  )  [static]
static int bsls::ByteOrderUtil::swapBytes ( int  x  )  [static]
static unsigned int bsls::ByteOrderUtil::swapBytes ( unsigned int  x  )  [static]
static long bsls::ByteOrderUtil::swapBytes ( long  x  )  [static]
static unsigned long bsls::ByteOrderUtil::swapBytes ( unsigned long  x  )  [static]
static Types::Uint64 bsls::ByteOrderUtil::swapBytes ( Types::Uint64  x  )  [static]
static Types::Int64 bsls::ByteOrderUtil::swapBytes ( Types::Int64  x  )  [static]

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

static unsigned short bsls::ByteOrderUtil::swapBytes16 ( unsigned short  x  )  [static]

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

static unsigned int bsls::ByteOrderUtil::swapBytes32 ( unsigned int  x  )  [static]

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

static Types::Uint64 bsls::ByteOrderUtil::swapBytes64 ( Types::Uint64  x  )  [static]

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


The documentation for this struct was generated from the following file: