|
cbmimage
|
Functions | |
| static void * | cbmimage_ii_xalloc (size_t size) |
| static void | cbmimage_ii_xfree (void *ptr) |
| static void * | cbmimage_ii_xalloc_and_copy (size_t newsize, const void *oldbuffer, size_t oldsize) |
| void * | cbmimage_i_xalloc (size_t size) |
| void | cbmimage_i_xfree (void *ptr) |
| void * | cbmimage_i_xalloc_and_copy (size_t newsize, const void *oldbuffer, size_t oldsize) |
Variables | |
| static cbmimage_alloc_xalloc_function_type * | cbmimage_i_alloc_xalloc_function = cbmimage_ii_xalloc |
| pointer to the callback function for cbmimage_i_xalloc() | |
| static cbmimage_alloc_xalloc_and_copy_function_type * | cbmimage_i_alloc_xalloc_and_copy_function = cbmimage_ii_xalloc_and_copy |
| pointer to the callback function for cbmimage_i_xalloc_and_copy() | |
| static cbmimage_alloc_xfree_function_type * | cbmimage_i_alloc_xfree_function = cbmimage_ii_xfree |
| pointer to the callback function for cbmimage_i_xfree() | |
| void * cbmimage_i_xalloc | ( | size_t | size | ) |
allocate dynamic memory
The dynamic memory is initialized with 0.
| [in] | size | size of the block to be allocated |
| void * cbmimage_i_xalloc_and_copy | ( | size_t | newsize, |
| const void * | oldbuffer, | ||
| size_t | oldsize ) |
allocate dynamic memory and copy into it
Allocates memory like cbmimage_i_xalloc(), but initializes the memory by copying from another buffer into it
| [in] | newsize | size of the block to be allocated |
| [in] | oldbuffer | ptr to a buffer from which to copy |
| [in] | oldsize | the size of the data in the oldbuffer |
| void cbmimage_i_xfree | ( | void * | ptr | ) |
free dynamic memory
The dynamic memory is initialized with 0.
| [in] | ptr | ptr to a block that was allocated by cbmimage_i_xalloc() |
|
static |
allocate dynamic memory, internal implementation
The dynamic memory is initialized with 0.
| [in] | size | size of the block to be allocated |
|
static |
allocate dynamic memory and copy into it, internal implementation
Allocates memory like cbmimage_i_xalloc(), but initializes the memory by copying from another buffer into it
| [in] | newsize | size of the block to be allocated |
| [in] | oldbuffer | ptr to a buffer from which to copy |
| [in] | oldsize | the size of the data in the oldbuffer |
|
static |
free dynamic memory, internal implementation
| [in] | ptr | ptr to a block that was allocated by cbmimage_i_xalloc() |
|
static |
pointer to the callback function for cbmimage_i_xalloc_and_copy()
|
static |
pointer to the callback function for cbmimage_i_xalloc()
|
static |
pointer to the callback function for cbmimage_i_xfree()