3.6.0
|
|
Freundlich's C++ toolkit |
Functions to convert and query endianness. More...
Typedefs | |
using | raw_pointer = fcppt::endianness::raw_value * |
A pointer to raw memory, used to swap bytes. More... | |
using | raw_value = unsigned char |
The raw memory type used to swap bytes. More... | |
using | size_type = std::size_t |
The size of raw memory, used to swap bytes. More... | |
Enumerations | |
enum | format { format::little, format::big } |
An enumeration for the possible endiannesses. More... | |
Functions | |
template<typename Type > | |
Type | convert (Type const &_value, fcppt::endianness::format const _format) |
Converts the endianness of an object. More... | |
FCPPT_DETAIL_SYMBOL fcppt::endianness::format | host_format () |
Returns the endianness of this machine. More... | |
FCPPT_DETAIL_SYMBOL bool | is_big_endian () |
Returns if this machine uses big endianness. More... | |
FCPPT_DETAIL_SYMBOL bool | is_little_endian () |
Returns if this machine uses little endianness. More... | |
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. More... | |
template<typename Type > | |
Type | swap (Type _value) |
Swaps the endianness of an object. More... | |
Functions to convert and query endianness.