C++ Utilities
5.10.5
Useful C++ classes and routines such as argument parser, IO and conversion utilities
|
Go to the source code of this file.
Namespaces | |
CppUtilities | |
Contains all utilities provides by the c++utilities library. | |
CppUtilities::BE | |
Encapsulates binary conversion functions using the big endian byte order. | |
CppUtilities::LE | |
Encapsulates binary conversion functions using the little endian byte order. | |
Macros | |
#define | CONVERSION_UTILITIES_BINARY_CONVERSION_INTERNAL 0 |
#define | CONVERSION_UTILITIES_BINARY_CONVERSION_INTERNAL 1 |
Functions | |
constexpr CPP_UTILITIES_EXPORT std::uint16_t | CppUtilities::toFixed8 (float float32value) |
Returns the 8.8 fixed point representation converted from the specified 32-bit floating point number. More... | |
constexpr CPP_UTILITIES_EXPORT float | CppUtilities::toFloat32 (std::uint16_t fixed8value) |
Returns a 32-bit floating point number converted from the specified 8.8 fixed point representation. More... | |
constexpr CPP_UTILITIES_EXPORT std::uint32_t | CppUtilities::toFixed16 (float float32value) |
Returns the 16.16 fixed point representation converted from the specified 32-bit floating point number. More... | |
constexpr CPP_UTILITIES_EXPORT float | CppUtilities::toFloat32 (std::uint32_t fixed16value) |
Returns a 32-bit floating point number converted from the specified 16.16 fixed point representation. More... | |
constexpr CPP_UTILITIES_EXPORT std::uint32_t | CppUtilities::toSynchsafeInt (std::uint32_t normalInt) |
Returns a 32-bit synchsafe integer converted from a normal 32-bit integer. More... | |
constexpr CPP_UTILITIES_EXPORT std::uint32_t | CppUtilities::toNormalInt (std::uint32_t synchsafeInt) |
Returns a normal 32-bit integer converted from a 32-bit synchsafe integer. More... | |
constexpr CPP_UTILITIES_EXPORT std::uint16_t | CppUtilities::swapOrder (std::uint16_t value) |
Swaps the byte order of the specified 16-bit unsigned integer. More... | |
constexpr CPP_UTILITIES_EXPORT std::uint32_t | CppUtilities::swapOrder (std::uint32_t value) |
Swaps the byte order of the specified 32-bit unsigned integer. More... | |
constexpr CPP_UTILITIES_EXPORT std::uint64_t | CppUtilities::swapOrder (std::uint64_t value) |
Swaps the byte order of the specified 64-bit unsigned integer. More... | |
#define CONVERSION_UTILITIES_BINARY_CONVERSION_INTERNAL 0 |
Definition at line 93 of file binaryconversion.h.
#define CONVERSION_UTILITIES_BINARY_CONVERSION_INTERNAL 1 |
Definition at line 93 of file binaryconversion.h.