Example 1: Managing Memory with Stores
A Store is an API data type (SE_Store) created by an application to manage memory allocated by the API.
A Store manages the memory allocated when retrieving an object’s:
- Field data
- Data Table cell data
- Image data
A Store may be reused for better efficiency.
Data managed by a Store is passed back from the API functions in a separate pointer.
Data is valid until the Store is freed or the Store is reused in another API call.
Make sure not to reuse the data after the Store has been reused or freed!