NAME

memory - ImageMagick Memory Allocation Methods


SYNOPSIS

memory=AllocateMemory(size)

FreeMemory(memory)

memory=ReallocateMemory(memory,size)


FUNCTION DESCRIPTIONS


AllocateMemory

Method AllocateMemory returns a pointer to a block of at least size bytes suitably aligned for any use.

The format of the AllocateMemory routine is:

        memory=AllocateMemory(size)

A description of each parameter follows:

memory:

Method AllocateMemory returns a pointer to a block of at least size bytes suitably aligned for any use.

size:

Specifies the size of the memory to return.


FreeMemory

Method FreeMemory frees memory that has already been allocated.

The format of the FreeMemory routine is:

        FreeMemory(memory)

A description of each parameter follows:

span:

Specifies the pointer to a block memory to free for reuse.


ReallocateMemory

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 routine is:

        memory=ReallocateMemory(memory,size)

A description of each parameter follows:

memory:

Method ReallocateMemory returns a pointer to a block of at least size bytes suitably aligned for any use.

size:

Specifies the size of the memory to return.