38#ifndef Foam_foamEndian_H
39#define Foam_foamEndian_H
68 inline static bool isBig()
noexcept;
71 inline static bool isLittle()
noexcept;
74 inline static uint32_t
swap32(uint32_t);
77 inline static uint64_t
swap64(uint64_t);
Help with architecture-specific aspects, primarily used as a namespace, but defined as a class to all...
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.
static bool isBig() noexcept
Runtime check for big endian.
Define WM_BIG_ENDIAN or WM_LITTLE_ENDIAN and forward declare Foam::endian class.