Functions
ecl Namespace Reference

Functions

void from_byte_array (int32 &value, const char *byte_array)
 Converts an array of four char into a 32 bit integer. More...
 
void from_byte_array (int32 &value, const unsigned char *byte_array)
 Converts a array of four unsigned char into a 32 bit integer. More...
 
void from_byte_array (uint32 &value, const char *byte_array)
 Converts a array of four char into a 32 bit integer. More...
 
void from_byte_array (uint32 &value, const unsigned char *byte_array)
 Converts a array of four unsigned char into a 32 bit unsigned int. More...
 
bool is_big_endian ()
 
bool is_char_signed ()
 

Function Documentation

◆ from_byte_array() [1/4]

void ecl::from_byte_array ( int32 &  value,
const char *  byte_array 
)

Converts an array of four 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 characters.

Definition at line 49 of file byte_array.hpp.

◆ from_byte_array() [2/4]

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.

Definition at line 69 of file byte_array.hpp.

◆ from_byte_array() [3/4]

void ecl::from_byte_array ( uint32 &  value,
const char *  byte_array 
)

Converts a array of four 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 char.

Definition at line 89 of file byte_array.hpp.

◆ from_byte_array() [4/4]

void ecl::from_byte_array ( uint32 &  value,
const unsigned char *  byte_array 
)

Converts a array of four unsigned char into a 32 bit unsigned int.

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.

Definition at line 109 of file byte_array.hpp.



ecl_converters_lite
Author(s): Daniel Stonier
autogenerated on Tue Jun 9 2020 03:25:03