Loading...
Searching...
No Matches
endian Class Reference

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

#include <foamEndian.H>

Static Public Member Functions

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

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.

References Foam::noexcept.

◆ isLittle()

bool isLittle ( )
inlinestaticnoexcept

Runtime check for little endian.

Definition at line 45 of file foamEndianI.H.

References Foam::noexcept.

◆ swap32()

uint32_t swap32 ( uint32_t u)
inlinestatic

Byte endian swapping for 32-bits.

Definition at line 54 of file foamEndianI.H.

◆ swap64()

uint64_t swap64 ( uint64_t u)
inlinestatic

Byte endian swapping for 64-bits.

Definition at line 76 of file foamEndianI.H.


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