vg
tools for working with variation graphs
|
#include <endianness.hpp>
Static Public Member Functions | |
static IntType | to_big_endian (IntType value) |
Template implementations. More... | |
static IntType | from_big_endian (IntType value) |
Static Private Member Functions | |
static IntType | swap_endianness (IntType value) |
static bool | arch_is_big_endian () |
Returns true if the architecture is big-endian, otherwise false. More... | |
A struct namespace for methods to handle endianness in integer values.
|
inlinestaticprivate |
Returns true if the architecture is big-endian, otherwise false.
|
inlinestatic |
Converts from a big-endian integer to the native representation in the machine architecture
|
inlinestaticprivate |
Returns the integer in the opposite endianness representation it currently has
|
inlinestatic |
Template implementations.
Converts from an integer in the native representation in the machine architecture to a big-endian representation