12 #ifndef ECL_CONVERTERS_LITE_BYTE_ARRAY_HPP_ 13 #define ECL_CONVERTERS_LITE_BYTE_ARRAY_HPP_ 45 for (
unsigned int i = 0; i < 4; ++i ) {
46 value |=
static_cast<unsigned char>(*(byte_array+i)) << 8*i;
65 for (
unsigned int i = 0; i < 4; ++i ) {
66 value |=
static_cast<unsigned char>(*(byte_array+i)) << 8*i;
85 for (
unsigned int i = 0; i < 4; ++i ) {
86 value |=
static_cast<unsigned char>(*(byte_array+i)) << 8*i;
105 for (
unsigned int i = 0; i < 4; ++i ) {
106 value |=
static_cast<unsigned char>(*(byte_array+i)) << 8*i;
void from_byte_array(int32 &value, const char *byte_array)
Converts an array of four char into a 32 bit integer.