|
Picasso API
2.9
|
Data Structures | |
| struct | _ps_memory_funcs |
| Memory allocator functions structure. More... | |
Typedefs | |
| typedef void *(* | ps_malloc_func) (size_t size) |
| Memory allocation function pointer type. More... | |
| typedef void(* | ps_free_func) (void *ptr) |
| Memory free function pointer type. More... | |
| typedef void *(* | ps_calloc_func) (size_t num, size_t size) |
| Memory calloc function pointer type. More... | |
| typedef struct _ps_memory_funcs | ps_memory_funcs |
| Memory allocator functions structure. | |
Functions | |
| PEXPORT ps_bool PICAPI | ps_set_memory_functions (const ps_memory_funcs *funcs) |
| Set global memory allocation functions. More... | |
| typedef void*(* ps_calloc_func) (size_t num, size_t size) |
Memory calloc function pointer type.
| num | Number of elements |
| size | Size of each element in bytes |
Definition at line 58 of file picasso_backport.h.
| typedef void(* ps_free_func) (void *ptr) |
Memory free function pointer type.
| ptr | Pointer to memory to free |
Definition at line 50 of file picasso_backport.h.
| typedef void*(* ps_malloc_func) (size_t size) |
Memory allocation function pointer type.
| size | Size in bytes to allocate |
Definition at line 44 of file picasso_backport.h.
| ps_bool ps_set_memory_functions | ( | const ps_memory_funcs * | funcs | ) |
Set global memory allocation functions.
This function allows you to override the default memory allocation functions used throughout the Picasso library. All memory allocations will be redirected to the provided functions.
| funcs | Pointer to structure containing memory function pointers. |
1.8.17