table of contents
other versions
- jessie 3.1.4~abc9f50-7
memalloc.h(3) | Coin | memalloc.h(3) |
NAME¶
memalloc.h -SYNOPSIS¶
#include <Inventor/C/basic.h>Typedefs¶
typedef struct cc_memalloc cc_memalloc
Functions¶
cc_memalloc * cc_memalloc_construct (const unsigned int unitsize)
Function Documentation¶
cc_memalloc* cc_memalloc_construct (const unsigned intunitsize)¶
Construct a memory allocator. Each allocated unit will be unitsize bytes.void cc_memalloc_destruct (cc_memalloc *allocator)¶
Destruct allocator, freeing all memory used.void* cc_memalloc_allocate (cc_memalloc *allocator)¶
Allocate a memory unit from allocator.void cc_memalloc_deallocate (cc_memalloc *allocator, void *ptr)¶
Deallocate a memory unit. ptr must have been allocated using cc_memalloc_allocate(), of course.void cc_memalloc_clear (cc_memalloc *allocator)¶
Free all memory allocated by allocator.void cc_memalloc_set_strategy (cc_memalloc *allocator, cc_memalloc_strategy_cb *cb)¶
Sets the allocator strategy callback. should be a function that returns the number of units to allocated in a block, based on the number of units currently allocated. The default strategy is to just return the number of units allocated (which will successively double the internal memory chunk sizes), unless the number of units allocated is less than 64, then 64 is returned.Author¶
Generated automatically by Doxygen for Coin from the source code.Thu May 29 2014 | Version 4.0.0a |