Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Namespaces | Functions
endian.hpp File Reference
#include "shambase/aliases_int.hpp"
#include "shambase/integer.hpp"
+ Include dependency graph for endian.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  shambase
 namespace for basic c++ utilities
 

Functions

bool shambase::is_little_endian ()
 Check if the CPU is in little endian.
 
template<class T >
void shambase::endian_swap (T &a)
 Swap the endianness of the input value.
 
template<class T >
shambase::get_endian_swap (T a)
 Return a copy of the input value with the endianness swapped.
 

Detailed Description

Author
Timothée David–Cléris (tim.s.nosp@m.hamr.nosp@m.ock@p.nosp@m.roto.nosp@m.n.me)

Definition in file endian.hpp.