C++ Utilities
4.17.0
Useful C++ classes and routines such as argument parser, IO and conversion utilities
|
Encapsulates binary conversion functions using the big endian byte order. More...
Typedefs | |
typedef std::int8_t | sbyte |
signed byte More... | |
typedef std::uint8_t | byte |
unsigned byte More... | |
typedef std::int16_t | int16 |
signed 16-bit integer More... | |
typedef std::int32_t | int32 |
signed 32-bit integer More... | |
typedef std::int64_t | int64 |
signed 64-bit integer More... | |
typedef std::intptr_t | intptr |
signed pointer More... | |
typedef std::uint16_t | uint16 |
unsigned 16-bit integer More... | |
typedef std::uint32_t | uint32 |
unsigned 32-bit integer More... | |
typedef std::uint64_t | uint64 |
unsigned 64-bit integer More... | |
typedef std::uintptr_t | uintptr |
unsigned pointer More... | |
Functions | |
CPP_UTILITIES_EXPORT constexpr int16 | toInt16 (const char *value) |
Returns a 16-bit signed integer converted from two bytes at a specified position in a char array. More... | |
CPP_UTILITIES_EXPORT constexpr uint16 | toUInt16 (const char *value) |
Returns a 16-bit unsigned integer converted from two bytes at a specified position in a char array. More... | |
CPP_UTILITIES_EXPORT constexpr int32 | toInt32 (const char *value) |
Returns a 32-bit signed integer converted from four bytes at a specified position in a char array. More... | |
CPP_UTILITIES_EXPORT constexpr uint32 | toUInt24 (const char *value) |
Returns a 32-bit unsigned integer converted from three bytes at a specified position in a char array. More... | |
CPP_UTILITIES_EXPORT constexpr uint32 | toUInt32 (const char *value) |
Returns a 32-bit unsigned integer converted from four bytes at a specified position in a char array. More... | |
CPP_UTILITIES_EXPORT constexpr int64 | toInt64 (const char *value) |
Returns a 64-bit signed integer converted from eight bytes at a specified position in a char array. More... | |
CPP_UTILITIES_EXPORT constexpr uint64 | toUInt64 (const char *value) |
Returns a 64-bit unsigned integer converted from eight bytes at a specified position in a char array. More... | |
CPP_UTILITIES_EXPORT float32 | toFloat32 (const char *value) |
Returns a 32-bit floating point number converted from four bytes at a specified position in a char array. More... | |
CPP_UTILITIES_EXPORT float64 | toFloat64 (const char *value) |
Returns a 64-bit floating point number converted from eight bytes at a specified position in a char array. More... | |
CPP_UTILITIES_EXPORT void | getBytes (int16 value, char *outputbuffer) |
Stores the specified 16-bit signed integer value at a specified position in a char array. More... | |
CPP_UTILITIES_EXPORT void | getBytes (uint16 value, char *outputbuffer) |
Stores the specified 16-bit unsigned integer value at a specified position in a char array. More... | |
CPP_UTILITIES_EXPORT void | getBytes24 (uint32 value, char *outputbuffer) |
Stores the specified 24-bit unsigned integer value at a specified position in a char array. More... | |
CPP_UTILITIES_EXPORT void | getBytes (int32 value, char *outputbuffer) |
Stores the specified 32-bit signed integer value at a specified position in a char array. More... | |
CPP_UTILITIES_EXPORT void | getBytes (uint32 value, char *outputbuffer) |
Stores the specified 32-bit signed integer value at a specified position in a char array. More... | |
CPP_UTILITIES_EXPORT void | getBytes (int64 value, char *outputbuffer) |
Stores the specified 64-bit signed integer value at a specified position in a char array. More... | |
CPP_UTILITIES_EXPORT void | getBytes (uint64 value, char *outputbuffer) |
Stores the specified 64-bit unsigned integer value at a specified position in a char array. More... | |
CPP_UTILITIES_EXPORT void | getBytes (float32 value, char *outputbuffer) |
Stores the specified 32-bit floating point value at a specified position in a char array. More... | |
CPP_UTILITIES_EXPORT void | getBytes (float64 value, char *outputbuffer) |
Stores the specified 64-bit floating point value at a specified position in a char array. More... | |
Encapsulates binary conversion functions using the big endian byte order.
typedef std::uint8_t ConversionUtilities::BE::byte |
unsigned byte
Definition at line 15 of file binaryconversion.h.
typedef std::int16_t ConversionUtilities::BE::int16 |
signed 16-bit integer
Definition at line 20 of file binaryconversion.h.
typedef std::int32_t ConversionUtilities::BE::int32 |
signed 32-bit integer
Definition at line 25 of file binaryconversion.h.
typedef std::int64_t ConversionUtilities::BE::int64 |
signed 64-bit integer
Definition at line 30 of file binaryconversion.h.
typedef std::intptr_t ConversionUtilities::BE::intptr |
signed pointer
Definition at line 35 of file binaryconversion.h.
typedef std::int8_t ConversionUtilities::BE::sbyte |
signed byte
Definition at line 10 of file binaryconversion.h.
typedef std::uint16_t ConversionUtilities::BE::uint16 |
unsigned 16-bit integer
Definition at line 40 of file binaryconversion.h.
typedef std::uint32_t ConversionUtilities::BE::uint32 |
unsigned 32-bit integer
Definition at line 45 of file binaryconversion.h.
typedef std::uint64_t ConversionUtilities::BE::uint64 |
unsigned 64-bit integer
Definition at line 50 of file binaryconversion.h.
typedef std::uintptr_t ConversionUtilities::BE::uintptr |
unsigned pointer
Definition at line 55 of file binaryconversion.h.
|
inline |
Stores the specified 16-bit signed integer value at a specified position in a char array.
Definition at line 134 of file binaryconversion.h.
|
inline |
Stores the specified 16-bit unsigned integer value at a specified position in a char array.
Definition at line 148 of file binaryconversion.h.
|
inline |
Stores the specified 32-bit signed integer value at a specified position in a char array.
Definition at line 179 of file binaryconversion.h.
|
inline |
Stores the specified 32-bit signed integer value at a specified position in a char array.
Definition at line 197 of file binaryconversion.h.
|
inline |
Stores the specified 64-bit signed integer value at a specified position in a char array.
Definition at line 215 of file binaryconversion.h.
|
inline |
Stores the specified 64-bit unsigned integer value at a specified position in a char array.
Definition at line 241 of file binaryconversion.h.
|
inline |
Stores the specified 32-bit floating point value at a specified position in a char array.
Definition at line 267 of file binaryconversion.h.
|
inline |
Stores the specified 64-bit floating point value at a specified position in a char array.
Definition at line 277 of file binaryconversion.h.
|
inline |
Stores the specified 24-bit unsigned integer value at a specified position in a char array.
Definition at line 163 of file binaryconversion.h.
|
inline |
Returns a 32-bit floating point number converted from four bytes at a specified position in a char array.
Definition at line 114 of file binaryconversion.h.
|
inline |
Returns a 64-bit floating point number converted from eight bytes at a specified position in a char array.
Definition at line 124 of file binaryconversion.h.
CPP_UTILITIES_EXPORT constexpr int16 ConversionUtilities::BE::toInt16 | ( | const char * | value | ) |
Returns a 16-bit signed integer converted from two bytes at a specified position in a char array.
Definition at line 12 of file binaryconversion.h.
CPP_UTILITIES_EXPORT constexpr int32 ConversionUtilities::BE::toInt32 | ( | const char * | value | ) |
Returns a 32-bit signed integer converted from four bytes at a specified position in a char array.
Definition at line 36 of file binaryconversion.h.
CPP_UTILITIES_EXPORT constexpr int64 ConversionUtilities::BE::toInt64 | ( | const char * | value | ) |
Returns a 64-bit signed integer converted from eight bytes at a specified position in a char array.
Definition at line 78 of file binaryconversion.h.
CPP_UTILITIES_EXPORT constexpr uint16 ConversionUtilities::BE::toUInt16 | ( | const char * | value | ) |
Returns a 16-bit unsigned integer converted from two bytes at a specified position in a char array.
Definition at line 24 of file binaryconversion.h.
CPP_UTILITIES_EXPORT constexpr uint32 ConversionUtilities::BE::toUInt24 | ( | const char * | value | ) |
Returns a 32-bit unsigned integer converted from three bytes at a specified position in a char array.
Definition at line 50 of file binaryconversion.h.
CPP_UTILITIES_EXPORT constexpr uint32 ConversionUtilities::BE::toUInt32 | ( | const char * | value | ) |
Returns a 32-bit unsigned integer converted from four bytes at a specified position in a char array.
Definition at line 64 of file binaryconversion.h.
CPP_UTILITIES_EXPORT constexpr uint64 ConversionUtilities::BE::toUInt64 | ( | const char * | value | ) |
Returns a 64-bit unsigned integer converted from eight bytes at a specified position in a char array.
Definition at line 96 of file binaryconversion.h.