Memory management for a varying-length structure
The following table summarizes the memory operations for
a varying-length structure.
Memory duration | Memory operation | Function name |
---|---|---|
Current® memory duration | Constructor | mi_new_var(), mi_streamread_lvarchar(), mi_string_to_lvarchar(), mi_var_copy() |
Current® memory duration | Destructor | mi_var_free() |
This section describes the DataBlade®
API functions
that allocate and deallocate a varying-length structure.
Restriction: Do not use either the DataBlade®
API memory-management
functions (such as mi_alloc() and mi_free())
or the operating-system memory-management functions (such as malloc() and free())
to handle allocation of varying-length structures.