Next: , Previous: , Up: blocks   [Contents][Index]


6.5 Dynamic memory allocation for blocks

Function: ccmem_block_t ccmem_block_malloc (cce_destination_t L, ccmem_allocator_t const * A, size_t len)

Use the given allocator to allocate enough memory to hold len octets and return a new instance referencing the memory. If an error occurs: raise an exception by performing a non–local exit to L.

Function: ccmem_block_t ccmem_block_realloc (cce_destination_t L, ccmem_allocator_t const * A, ccmem_block_t S, size_t newlen)

Use the given allocator to reallocate the memory referenced by S to a new size. Return a new struct instance referencing the reallocated memory. If an error occurs: raise an exception by performing a non–local exit to L.

Function: void ccmem_block_free (ccmem_allocator_t const * A, ccmem_block_t S)

Use the given allocator to release the memory referenced by S.


Next: , Previous: , Up: blocks   [Contents][Index]

This document describes version 0.2.2-devel.3 of CCMemory.