C++ Utilities
4.12.1
Useful C++ classes and routines such as argument parser, IO and conversion utilities
|
Go to the source code of this file.
Namespaces | |
ConversionUtilities | |
Contains several functions providing conversions between different data types. | |
ConversionUtilities::BE | |
Encapsulates binary conversion functions using the big endian byte order. | |
ConversionUtilities::LE | |
Encapsulates binary conversion functions using the little endian byte order. | |
Functions | |
CPP_UTILITIES_EXPORT constexpr uint16 | ConversionUtilities::toFixed8 (float32 float32value) |
Returns the 8.8 fixed point representation converted from the specified 32-bit floating point number. More... | |
CPP_UTILITIES_EXPORT constexpr float32 | ConversionUtilities::toFloat32 (uint16 fixed8value) |
Returns a 32-bit floating point number converted from the specified 8.8 fixed point representation. More... | |
CPP_UTILITIES_EXPORT constexpr uint32 | ConversionUtilities::toFixed16 (float32 float32value) |
Returns the 16.16 fixed point representation converted from the specified 32-bit floating point number. More... | |
CPP_UTILITIES_EXPORT constexpr float32 | ConversionUtilities::toFloat32 (uint32 fixed16value) |
Returns a 32-bit floating point number converted from the specified 16.16 fixed point representation. More... | |
CPP_UTILITIES_EXPORT constexpr uint32 | ConversionUtilities::toSynchsafeInt (uint32 normalInt) |
Returns a 32-bit synchsafe integer converted from a normal 32-bit integer. More... | |
CPP_UTILITIES_EXPORT constexpr uint32 | ConversionUtilities::toNormalInt (uint32 synchsafeInt) |
Returns a normal 32-bit integer converted from a 32-bit synchsafe integer. More... | |
CPP_UTILITIES_EXPORT constexpr uint16 | ConversionUtilities::swapOrder (uint16 value) |
Swaps the byte order of the specified 16-bit unsigned integer. More... | |
CPP_UTILITIES_EXPORT constexpr uint32 | ConversionUtilities::swapOrder (uint32 value) |
Swaps the byte order of the specified 32-bit unsigned integer. More... | |
CPP_UTILITIES_EXPORT constexpr uint64 | ConversionUtilities::swapOrder (uint64 value) |
Swaps the byte order of the specified 64-bit unsigned integer. More... | |