Functions | |
| void * | cpl_xmemory_calloc (size_t nmemb, size_t size) |
| Allocate memory. | |
| void * | cpl_xmemory_calloc_count (size_t nmemb, size_t size) |
| calloc() with failure check | |
| void | cpl_xmemory_free (void *ptr) |
| Free memory. | |
| void | cpl_xmemory_free_count (void *ptr) |
| Free memory. | |
| int | cpl_xmemory_is_empty (int mode) |
| Tell if there is still some memory allocated. | |
| void * | cpl_xmemory_malloc (size_t size) |
| Allocate memory. | |
| void * | cpl_xmemory_malloc_count (size_t size) |
| malloc() with failure check | |
| void * | cpl_xmemory_realloc (void *oldptr, size_t size) |
| Re-Allocate memory. | |
| void * | cpl_xmemory_realloc_count (void *oldptr, size_t size) |
| realloc() with failure check | |
| void | cpl_xmemory_status (int mode) |
| Display memory status information. | |
| void* cpl_xmemory_calloc | ( | size_t | nmemb, | |
| size_t | size | |||
| ) |
Allocate memory.
| nmemb | Number of elements to allocate. | |
| size | Size (in bytes) of each element. |
| void* cpl_xmemory_calloc_count | ( | size_t | nmemb, | |
| size_t | size | |||
| ) |
calloc() with failure check
| nmemb | Number of elements to allocate. | |
| size | Size (in bytes) to allocate. |
| void cpl_xmemory_free | ( | void * | ptr | ) |
Free memory.
| ptr | Pointer to free. |
NULL, nothing is done and no error is set.
| void cpl_xmemory_free_count | ( | void * | ptr | ) |
Free memory.
| ptr | Pointer to free. |
| int cpl_xmemory_is_empty | ( | int | mode | ) |
Tell if there is still some memory allocated.
| mode | Mode (0: system, 1: Xmemory-failure check, 2: Xmemory-full) |
| void* cpl_xmemory_malloc | ( | size_t | size | ) |
Allocate memory.
| size | Size (in bytes) to allocate. |
cpl_xmemory_malloc(size)
| void* cpl_xmemory_malloc_count | ( | size_t | size | ) |
malloc() with failure check
| size | Size (in bytes) to allocate. |
| void* cpl_xmemory_realloc | ( | void * | oldptr, | |
| size_t | size | |||
| ) |
Re-Allocate memory.
| oldptr | Pointer to free. | |
| size | Size (in bytes) to allocate. |
| void* cpl_xmemory_realloc_count | ( | void * | oldptr, | |
| size_t | size | |||
| ) |
realloc() with failure check
| oldptr | Pointer to reallocate. | |
| size | Size (in bytes) to reallocate. |
| void cpl_xmemory_status | ( | int | mode | ) |
Display memory status information.
| mode | Mode (0: system, 1: Xmemory-failure check, 2: Xmemory-full) |
1.4.7