xdrpp
RFC4506 XDR compiler and message library
Namespaces | Macros | Functions | Variables
endian.h File Reference

Low-level byteswap and miscellaneous OS compatibility routines. More...

#include <cstdint>
#include <string>
#include <xdrpp/build_endian.h>
Include dependency graph for endian.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 xdr
 Most of the xdrpp library is encapsulated in the xdr namespace.
 

Macros

#define Constexpr   constexpr
 
#define xdr_strerror   std::strerror
 

Functions

Constexpr std::uint32_t xdr::swap32 (std::uint32_t v)
 Byteswap 32-bit number.
 
Constexpr std::uint64_t xdr::swap64 (std::uint64_t v)
 Byteswap 64-bit number.
 
Constexpr std::uint32_t xdr::swap32le (std::uint32_t v)
 Byteswap 32-bit value only on little-endian machines, identity function on big-endian machines. More...
 
Constexpr std::uint32_t xdr::swap32be (std::uint32_t v)
 Byteswap 32-bit value only on big-endian machines.
 
Constexpr std::uint64_t xdr::swap64le (std::uint64_t v)
 Byteswap 64-bit value only on little-endian machines.
 
Constexpr std::uint64_t xdr::swap64be (std::uint64_t v)
 Byteswap 64-bit value only on big-endian machines.
 

Variables

Constexpr const bool xdr::is_big_endian = false
 True on big endian machines, false on little endian machines.
 

Detailed Description

Low-level byteswap and miscellaneous OS compatibility routines.

Definition in file endian.h.