memory - ImageMagick Memory Allocation Methods
void * AllocateMemory( const size_t size );
void FreeMemory( void *memory
);
void * ReallocateMemory( void *memory, const size_t size );
Method AllocateMemory returns a pointer to a block of at least size bytes suitably aligned for any use.
The format of the AllocateMemory method is:
void *AllocateMemory ( const size_t size );
A description of each parameter follows:
Method AllocateMemory returns a pointer to a block of at least size bytes suitably aligned for any use.
Specifies the size of the memory to return.
Method FreeMemory frees memory that has already been allocated.
The format of the FreeMemory method is:
void FreeMemory ( void *memory );
A description of each parameter follows:
Specifies the pointer to a block memory to free for reuse.
Method ReallocateMemory changes the size of the memory and returns a pointer to the (possibly moved) block. The contents will be unchanged up to the lesser of the new and old sizes.
The format of the ReallocateMemory method is:
void *ReallocateMemory ( void *memory, const size_t size );
A description of each parameter follows:
Method ReallocateMemory returns a pointer to a block of at least size bytes suitably aligned for any use.
Specifies the size of the memory to return.