Utilities
1
Collection of utility classes and functions used by my C++ applications.
|
Go to the source code of this file.
Namespaces | |
ConversionUtilities | |
Contains several functions providing conversions between different data types. | |
Functions | |
int16 | ConversionUtilities::toInt16 (const char *value, int startIndex, ByteOrder byteOrder) |
Returns a 16-bit signed integer converted from two bytes at a specified position in a char array. More... | |
uint16 | ConversionUtilities::toUInt16 (const char *value, int startIndex, ByteOrder byteOrder) |
Returns a 16-bit unsigned integer converted from two bytes at a specified position in a char array. More... | |
int32 | ConversionUtilities::toInt32 (const char *value, int startIndex, ByteOrder byteOrder) |
Returns a 32-bit signed integer converted from four bytes at a specified position in a char array. More... | |
uint32 | ConversionUtilities::toUInt24 (const char *value, int startIndex, ByteOrder byteOrder) |
Returns a 32-bit unsigned integer converted from three bytes at a specified position in a char array. More... | |
uint32 | ConversionUtilities::toUInt32 (const char *value, int startIndex, ByteOrder byteOrder) |
Returns a 32-bit unsigned integer converted from four bytes at a specified position in a char array. More... | |
int64 | ConversionUtilities::toInt64 (const char *value, int startIndex, ByteOrder byteOrder) |
Returns a 64-bit signed integer converted from eight bytes at a specified position in a char array. More... | |
uint64 | ConversionUtilities::toUInt64 (const char *value, int startIndex, ByteOrder byteOrder) |
Returns a 64-bit unsigned integer converted from eight bytes at a specified position in a char array. More... | |
float32 | ConversionUtilities::toFloat32 (const char *value, int startIndex, ByteOrder byteOrder) |
Returns a 32-bit floating point number converted from four bytes at a specified position in a char array. More... | |
float64 | ConversionUtilities::toFloat64 (const char *value, int startIndex, ByteOrder byteOrder) |
Returns a 64-bit floating point number converted from eight bytes at a specified position in a char array. More... | |
uint32 | ConversionUtilities::toSynchsafeInt (uint32 normalInt) |
Returns a 32-bit synchsafe integer converted from a normal 32-bit integer. More... | |
uint32 | ConversionUtilities::toNormalInt (uint32 synchsafeInt) |
Returns a normal 32-bit integer converted from a 32-bit synchsafe integer. More... | |
void | ConversionUtilities::getBytes (int16 value, char *outputbuffer, int startIndex, ByteOrder byteOrder) |
Stores the specified 16-bit signed integer value at a specified position in a char array. More... | |
void | ConversionUtilities::getBytes (uint16 value, char *outputbuffer, int startIndex, ByteOrder byteOrder) |
Stores the specified 16-bit unsigned integer value at a specified position in a char array. More... | |
void | ConversionUtilities::getBytes (int32 value, char *outputbuffer, int startIndex, ByteOrder byteOrder) |
Stores the specified 32-bit signed integer value at a specified position in a char array. More... | |
void | ConversionUtilities::getBytes (uint32 value, char *outputbuffer, int startIndex, ByteOrder byteOrder) |
Stores the specified 32-bit unsigned integer value at a specified position in a char array. More... | |
void | ConversionUtilities::getBytes (int64 value, char *outputbuffer, int startIndex, ByteOrder byteOrder) |
Stores the specified 64-bit signed integer value at a specified position in a char array. More... | |
void | ConversionUtilities::getBytes (uint64 value, char *outputbuffer, int startIndex, ByteOrder byteOrder) |
Stores the specified 64-bit unsigned integer value at a specified position in a char array. More... | |
void | ConversionUtilities::getBytes (float32 value, char *outputbuffer, int startIndex, ByteOrder byteOrder) |
Stores the specified 32-bit floating point value at a specified position in a char array. More... | |
void | ConversionUtilities::getBytes (float64 value, char *outputbuffer, int startIndex, ByteOrder byteOrder) |
Stores the specified 64-bit floating point value at a specified position in a char array. More... | |