Static Public Member Functions | List of all members
endian Class Reference

Static Public Member Functions

static bool isBig () noexcept
 Runtime check for big endian. More...
 
static bool isLittle () noexcept
 Runtime check for little endian. More...
 
static uint32_t swap32 (uint32_t)
 Byte endian swapping for 32-bits. More...
 
static uint64_t swap64 (uint64_t)
 Byte endian swapping for 64-bits. More...
 

Detailed Description

Definition at line 67 of file endian.H.

Member Function Documentation

◆ isBig()

bool isBig ( )
inlinestaticnoexcept

Runtime check for big endian.

Definition at line 36 of file endianI.H.

◆ isLittle()

bool isLittle ( )
inlinestaticnoexcept

Runtime check for little endian.

Definition at line 45 of file endianI.H.

◆ swap32()

uint32_t swap32 ( uint32_t  u)
inlinestatic

Byte endian swapping for 32-bits.

Definition at line 54 of file endianI.H.

Referenced by legacyRawFormatter::write().

Here is the caller graph for this function:

◆ swap64()

uint64_t swap64 ( uint64_t  u)
inlinestatic

Byte endian swapping for 64-bits.

Definition at line 76 of file endianI.H.

Referenced by legacyRawFormatter::write().

Here is the caller graph for this function:

The documentation for this class was generated from the following files: