BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bsls::ByteOrderUtil Struct Reference

#include <bsls_byteorderutil.h>

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.

Member Function Documentation

◆ swapBytes() [1/15]

bool bsls::ByteOrderUtil::swapBytes ( bool  x)
inlinestatic

◆ swapBytes() [2/15]

char bsls::ByteOrderUtil::swapBytes ( char  x)
inlinestatic

◆ swapBytes() [3/15]

char16_t bsls::ByteOrderUtil::swapBytes ( char16_t  x)
inlinestatic

◆ swapBytes() [4/15]

char32_t bsls::ByteOrderUtil::swapBytes ( char32_t  x)
inlinestatic

◆ swapBytes() [5/15]

int bsls::ByteOrderUtil::swapBytes ( int  x)
inlinestatic

◆ swapBytes() [6/15]

long bsls::ByteOrderUtil::swapBytes ( long  x)
inlinestatic

◆ swapBytes() [7/15]

short bsls::ByteOrderUtil::swapBytes ( short  x)
inlinestatic

◆ swapBytes() [8/15]

signed char bsls::ByteOrderUtil::swapBytes ( signed char  x)
inlinestatic

◆ swapBytes() [9/15]

Types::Int64 bsls::ByteOrderUtil::swapBytes ( Types::Int64  x)
inlinestatic

◆ swapBytes() [10/15]

Types::Uint64 bsls::ByteOrderUtil::swapBytes ( Types::Uint64  x)
inlinestatic

◆ swapBytes() [11/15]

unsigned char bsls::ByteOrderUtil::swapBytes ( unsigned char  x)
inlinestatic

◆ swapBytes() [12/15]

unsigned int bsls::ByteOrderUtil::swapBytes ( unsigned int  x)
inlinestatic

◆ swapBytes() [13/15]

unsigned long bsls::ByteOrderUtil::swapBytes ( unsigned long  x)
inlinestatic

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

◆ swapBytes() [14/15]

unsigned short bsls::ByteOrderUtil::swapBytes ( unsigned short  x)
inlinestatic

◆ swapBytes() [15/15]

wchar_t bsls::ByteOrderUtil::swapBytes ( wchar_t  x)
inlinestatic

◆ swapBytes16()

unsigned short bsls::ByteOrderUtil::swapBytes16 ( unsigned short  x)
inlinestatic

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

◆ swapBytes32()

unsigned int bsls::ByteOrderUtil::swapBytes32 ( unsigned int  x)
inlinestatic

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

◆ swapBytes64()

bsls::Types::Uint64 bsls::ByteOrderUtil::swapBytes64 ( Types::Uint64  x)
inlinestatic

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: