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... | |
Help with architecture-specific aspects, primarily used as a namespace, but defined as a class to allow pTraits specialization.
Definition at line 47 of file foamEndian.H.
|
inlinestaticnoexcept |
Runtime check for big endian.
Definition at line 36 of file foamEndianI.H.
|
inlinestaticnoexcept |
Runtime check for little endian.
Definition at line 45 of file foamEndianI.H.
|
inlinestatic |
Byte endian swapping for 32-bits.
Definition at line 54 of file foamEndianI.H.
Referenced by legacyRawFormatter::write().
|
inlinestatic |
Byte endian swapping for 64-bits.
Definition at line 76 of file foamEndianI.H.
Referenced by legacyRawFormatter::write().