endian Class Reference

Help with architecture-specific aspects, primarily used as a namespace, but defined as a class to allow pTraits specialization. More...

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

Help with architecture-specific aspects, primarily used as a namespace, but defined as a class to allow pTraits specialization.

Source files

Definition at line 47 of file foamEndian.H.

Member Function Documentation

◆ isBig()

bool isBig ( )
inlinestaticnoexcept

Runtime check for big endian.

Definition at line 36 of file foamEndianI.H.

◆ isLittle()

bool isLittle ( )
inlinestaticnoexcept

Runtime check for little endian.

Definition at line 45 of file foamEndianI.H.

◆ swap32()

uint32_t swap32 ( uint32_t  u)
inlinestatic

Byte endian swapping for 32-bits.

Definition at line 54 of file foamEndianI.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 foamEndianI.H.

Referenced by legacyRawFormatter::write().

Here is the caller graph for this function:

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