Function ecl::from_byte_array(int32&, const unsigned char *)
Defined in File byte_array.hpp
Function Documentation
-
void ecl::from_byte_array(int32 &value, const unsigned char *byte_array)
Converts a array of four unsigned char into a 32 bit integer.
The bytes are ordered from least significant to most significant (little-endian).
Warning: be careful to ensure that there is always at least 4 elements in the char string available for conversion. There is no way of catching this error except via segfault.
- Parameters:
value – : the output integer
byte_array – : input array of unsigned char.