#include <SQLDataSerialization.hpp>
Static Public Member Functions | |
static deserializerPtr | getDeserializer (TypeTag ttPrm) throw (NotImplementedException, UnexpectedException) |
To get the deserializer, give the object type and you'll get the function. | |
static uint32_t | floatToU32Bits (float f) |
Relatively safe "reinterpret_cast" of an IEEE 754 float to its uint32_t bit representation. | |
static float | U32BitsToFloat (uint32_t ui) |
See floatToU32Bits(float f). | |
static uint64_t | doubleToU64Bits (double d) |
Relatively safe "reinterpret_cast" of an IEEE 754 double to its uint64_t bit representation. | |
static double | U64BitsToDouble (uint64_t ui) |
See doubleToU64Bits(double d). |
static deserializerPtr CarobNS::SQLDataSerialization::getDeserializer | ( | TypeTag | ttPrm | ) | throw (NotImplementedException, UnexpectedException) [static] |
To get the deserializer, give the object type and you'll get the function.
ttPrm | type of object to be deserialized |
NotImplementedException | if the deserialization for the given type is not implemented yet |
static uint32_t CarobNS::SQLDataSerialization::floatToU32Bits | ( | float | f | ) | [static] |
Relatively safe "reinterpret_cast" of an IEEE 754 float to its uint32_t bit representation.
Does NOT swap bytes in any way, so endianness of the result is arch-specific. Endianness of floats is typically the same as for integer types, but not granted.
f | value to convert |
static uint64_t CarobNS::SQLDataSerialization::doubleToU64Bits | ( | double | d | ) | [static] |
Relatively safe "reinterpret_cast" of an IEEE 754 double to its uint64_t bit representation.
Does NOT swap bytes in any way, so endianness of the result is arch-specific. Endianness of doubles is typically the same as for integer types, but not granted.
d | value to convert |