C++ SDK Documentation
12.0.0
|
Public Attributes | |
vsize | alen |
uint8 | data [] |
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.