vg
tools for working with variation graphs
Static Public Member Functions | Static Private Member Functions | List of all members
vg::endianness< IntType > Struct Template Reference

#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...
 

Detailed Description

template<class IntType>
struct vg::endianness< IntType >

A struct namespace for methods to handle endianness in integer values.

Member Function Documentation

◆ arch_is_big_endian()

template<class IntType >
bool vg::endianness< IntType >::arch_is_big_endian
inlinestaticprivate

Returns true if the architecture is big-endian, otherwise false.

◆ from_big_endian()

template<class IntType >
IntType vg::endianness< IntType >::from_big_endian ( IntType  value)
inlinestatic

Converts from a big-endian integer to the native representation in the machine architecture

◆ swap_endianness()

template<class IntType >
IntType vg::endianness< IntType >::swap_endianness ( IntType  value)
inlinestaticprivate

Returns the integer in the opposite endianness representation it currently has

◆ to_big_endian()

template<class IntType >
IntType vg::endianness< IntType >::to_big_endian ( IntType  value)
inlinestatic

Template implementations.

Converts from an integer in the native representation in the machine architecture to a big-endian representation


The documentation for this struct was generated from the following file: