DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
endian.h File Reference
#include <utils/portable_endian.h>
#include <cstdint>

Go to the source code of this file.

Namespaces

 displace
 
 displace::formats
 
 displace::formats::helpers
 

Macros

#define DELETED   { static_assert(sizeof(T) == 0, "Non specialized functions are deleted"); }
 

Functions

template<typename T >
displace::formats::helpers::toBigEndian (T) DELETED template< typename T > T inline fromBigEndian(T) DELETED template< typename T > T inline toLittleEndian(T) DELETED template< typename T > T inline fromLittleEndian(T) DELETED template<> uint16_t inline toBigEndian(uint16_t v)
 
template<>
uint32_t displace::formats::helpers::toBigEndian (uint32_t v)
 
template<>
uint16_t displace::formats::helpers::fromBigEndian (uint16_t v)
 
template<>
uint32_t displace::formats::helpers::fromBigEndian (uint32_t v)
 
template<>
uint16_t displace::formats::helpers::toLittleEndian (uint16_t v)
 
template<>
uint32_t displace::formats::helpers::toLittleEndian (uint32_t v)
 
template<>
uint16_t displace::formats::helpers::fromLittleEndian (uint16_t v)
 
template<>
uint32_t displace::formats::helpers::fromLittleEndian (uint32_t v)
 

Macro Definition Documentation

◆ DELETED

#define DELETED   { static_assert(sizeof(T) == 0, "Non specialized functions are deleted"); }