CharArrayToStruct

Copy uchar type array to POD structure.

bool  CharArrayToStruct(
   void&         struct_object,    // structure
   const uchar&  char_array[],     // array
   uint          start_pos=0       // starting position in the array
   );

Parameters

struct_object

[in]  Reference to any type of POD structure (containing only simple data types).

char_array[]

[in] uchar type array.

start_pos=0

[in]  Position in the array, data copying starts from.

Return Value

Returns true if successful, otherwise false.

See also

StringToCharArray, ShortArrayToString, StructToCharArray, Use of a Codepage, FileReadStruct, Unions (union), MathSwap