4.6.0
Freundlich's C++ toolkit
Loading...
Searching...
No Matches
fcppt::endianness Namespace Reference

Functions to convert and query endianness. More...

Typedefs

using raw_pointer = fcppt::endianness::raw_value *
 A pointer to raw memory, used to swap bytes.
 
using raw_value = unsigned char
 The raw memory type used to swap bytes.
 
using size_type = std::size_t
 The size of raw memory, used to swap bytes.
 

Functions

template<typename Type >
Type convert (Type const &_value, std::endian const _format)
 Converts the endianness of an object.
 
FCPPT_DETAIL_SYMBOL void reverse_mem (fcppt::endianness::raw_pointer data, fcppt::endianness::size_type size)
 Reverses the byte order of a given memory block.
 
template<typename Type >
Type swap (Type _value)
 Swaps the endianness of an object.
 

Detailed Description

Functions to convert and query endianness.