Enigma  3.2.0
A Simple, Reliable and Efficient Encryption Tool
Endianness.hpp File Reference
#include <cstdint>
#include <bit>

Go to the source code of this file.

Namespaces

 Enigma
 
 Enigma::LittleEndian
 
 Enigma::BigEndian
 

Macros

#define ENIGMA_HAVE_BUILTIN(x)   false
 

Functions

std::uint64_t Enigma::BSwap64 (std::uint64_t host_int)
 
std::uint32_t Enigma::BSwap32 (std::uint32_t host_int)
 
std::uint16_t Enigma::BSwap16 (std::uint16_t host_int)
 
std::uint16_t Enigma::LittleEndian::fromHost (std::uint16_t value)
 
std::uint32_t Enigma::LittleEndian::fromHost (std::uint32_t value)
 
std::uint64_t Enigma::LittleEndian::fromHost (std::uint64_t value)
 
std::uint16_t Enigma::LittleEndian::toHost (std::uint16_t value)
 
std::uint32_t Enigma::LittleEndian::toHost (std::uint32_t value)
 
std::uint64_t Enigma::LittleEndian::toHost (std::uint64_t value)
 
std::uint16_t Enigma::BigEndian::fromHost (std::uint16_t value)
 
std::uint32_t Enigma::BigEndian::fromHost (std::uint32_t value)
 
std::uint64_t Enigma::BigEndian::fromHost (std::uint64_t value)
 
std::uint16_t Enigma::BigEndian::toHost (std::uint16_t value)
 
std::uint32_t Enigma::BigEndian::toHost (std::uint32_t value)
 
std::uint64_t Enigma::BigEndian::toHost (std::uint64_t value)
 

Macro Definition Documentation

◆ ENIGMA_HAVE_BUILTIN

#define ENIGMA_HAVE_BUILTIN (   x)    false

Definition at line 13 of file Endianness.hpp.