|
0.12.0
|
|
Freundlich's C++ toolkit |
Functions to convert and query endianness. More...
Namespaces | |
| namespace | format |
| Holds the format enum. | |
Typedefs | |
| typedef fcppt::endianness::raw_value * | raw_pointer |
| A pointer to raw memory, used to swap bytes. | |
| typedef unsigned char | raw_value |
| The raw memory type used to swap bytes. | |
| typedef std::size_t | size_type |
| The size of raw memory, used to swap bytes. | |
Functions | |
| template<typename Type > | |
| boost::enable_if < boost::is_fundamental< Type > , Type >::type | convert (Type const &_value, fcppt::endianness::format::type const _format) |
| Converts the endianness of an object. | |
| fcppt::endianness::format::type | host_format () |
| Returns the endianness of this machine. | |
| bool | is_big_endian () |
| Returns if this machine uses big endianness. | |
| bool | is_little_endian () |
| Returns if this machine uses little endianness. | |
| 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 > | |
| boost::enable_if < boost::is_fundamental< Type > , Type >::type | swap (Type _value) |
| Swaps the endianness of an object. | |
Functions to convert and query endianness.
1.8.2