C++ SDK Documentation  11.0.1
EE::DAAllocation Struct Reference
Collaboration diagram for EE::DAAllocation:
Collaboration graph

Public Attributes

vsize alen
 
uint8 data []
 

Detailed Description

Some data areas are never updated and therefore use a packed allocation scheme (only data in the DA, no other accounting(StringValue has it)) However, if the contents may be updated/expanded, the following struct is generally employed. The StringValue is still interpreted as usual, but its target is prefixed with the size of the allocation:

                        alen

StringValue[sloc+slen]+DA -> -------— data... (alen bytes reserved)

Thus as long as alen >= the size needed for a new value, no reallocation is needed.