This group provides lazy allocator functions.
Define Documentation
- Since :
- 2.3.1
- Parameters:
-
function | The function to allocate |
- Parameters:
-
function | The function to free |
Typedef Documentation
Public type definition for a lazy allocator.
Type definition for the callback used to allocate new items in a lazy allocator.
Function Documentation
Allocate one more of whatever the lazy allocator is allocating.
- Since :
- 2.3.1
- Parameters:
-
[in] | a | The lazy allocator to add an item to. |
- Returns:
- EINA_TRUE on success, else EINA_FALSE.
Add several elements to a lazy allocator.
- Since :
- 2.3.1
- Parameters:
-
[in] | a | The lazy allocater to add items to. |
[in] | num | The number of elements to add. |
- Returns:
- EINA_TRUE on success, else EINA_FALSE.
Free the resources for a lazy allocator.
- Since :
- 2.3.1
- Parameters:
-
[in] | a | The lazy allocator to free. |
Create a new lazy allocator.
- Since :
- 2.3.1
- Parameters:
-
[in] | data | The data for which memory will be allocated. |
[in] | alloc_cb | The callback to allocate memory for data items. |
[in] | free_cb | The callback to free memory for data items. |
[in] | num_init | The number of data items to initally allocate space for. |
- Returns:
- A new lazy allocator.