BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bsls::ByteOrderUtil Struct Reference

#include <bsls_byteorderutil.h>

Detailed Description

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

See bsls_byteorderutil

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 char8_t swapBytes (char8_t x)
 
static wchar_t swapBytes (wchar_t x)
 
static short swapBytes (short x)
 
static unsigned short swapBytes (unsigned short 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)
 

Member Function Documentation

◆ swapBytes() [1/14]

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

◆ swapBytes() [2/14]

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

◆ swapBytes() [3/14]

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

◆ swapBytes() [4/14]

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

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

◆ swapBytes() [5/14]

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

◆ swapBytes() [6/14]

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

◆ swapBytes() [7/14]

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

◆ swapBytes() [8/14]

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

◆ swapBytes() [9/14]

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

◆ swapBytes() [10/14]

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

◆ swapBytes() [11/14]

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

◆ swapBytes() [12/14]

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

◆ swapBytes() [13/14]

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

◆ swapBytes() [14/14]

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: