libref_array  0.6.1
The Referenced Array Interface

The referenced array interface is a dynamically allocated array of data of any type. The array can be shared by multiple objects to avoid data duplication.

The array is created once and then any number of the references can be requested. The references are pointers to the array. Each reference must be freed after use. Freeing last reference to the array would free the array's storage.

The array does not have any knowledge of the data type of the actual data stored in the array. All elements of the array are of the same size as prescribed by caller when the array is created. The caller can potentially mix different types of data in the array but this should be done with caution.

At the moment the interface is not complete. It provides basic functionality required to support other components. In future it might make sense to add entry points to insert and delete elements from the array. Current use cases do not require this kind of functionality so it is left out of the implementation.