Preparing C Data Variables for Encoding

Dynamic Memory Management
Populating Generated Structure Variables for Encoding
Accessing Encoded Message Components

Before data can be encoded, the C structure for a given data type must be populated. In most cases, this involves the simple assignment of data items to the elements within the structure. In some cases, however, dynamic memory pointers are involved. It is necessary to know how dynamic memory works in the run-time in order to populate these fields.