<HTML>
<HEAD>
<TITLE>memory - ImageMagick Memory Allocation Methods</TITLE>
<LINK REV="made" HREF="mailto:tkevans@fantasia.es.dupont.com">
</HEAD>

<body bgcolor="#FFFFFF" text="#000000" link="#1F00FF" alink="#FF0000"  vlink="#9900DD">

<!-- INDEX BEGIN -->

<UL>

	<LI><A HREF="#NAME">NAME</A></LI>
	<LI><A HREF="#SYNOPSIS">SYNOPSIS</A></LI>
	<LI><A HREF="#FUNCTION_DESCRIPTIONS">FUNCTION DESCRIPTIONS</A></LI>
	<UL>

		<LI><A HREF="#AllocateMemory">AllocateMemory</A></LI>
		<LI><A HREF="#FreeMemory">FreeMemory</A></LI>
		<LI><A HREF="#ReallocateMemory">ReallocateMemory</A></LI>
	</UL>

</UL>
<!-- INDEX END -->

<HR>
<P>
<H1><A NAME="NAME">NAME</A></H1>
<P>
memory - ImageMagick Memory Allocation Methods

</P>
<P>
<HR>
<H1><A NAME="SYNOPSIS">SYNOPSIS</A></H1>
<P>
void * <STRONG>AllocateMemory</STRONG>( const size_t size );

</P>
<P>
void  <STRONG>FreeMemory</STRONG>( void <CODE>*memory</CODE> );

</P>
<P>
void * <STRONG>ReallocateMemory</STRONG>( void *memory, const size_t size );

</P>
<P>
<HR>
<H1><A NAME="FUNCTION_DESCRIPTIONS">FUNCTION DESCRIPTIONS</A></H1>
<P>
<HR>
<H2><A NAME="AllocateMemory">AllocateMemory</A></H2>
<P>
Method AllocateMemory returns a pointer to a block of at least size bytes
suitably aligned for any use.

</P>
<P>
The format of the AllocateMemory method is:

</P>
<blockquote>void *AllocateMemory ( const size_t size ); </blockquote>

<P>

<FONT SIZE=-1>A</FONT> description of each parameter follows:

</P>
<DL><DL>
<p><dt><STRONG><A NAME="item_o">memory:</A></STRONG><DD>
<P>
Method AllocateMemory returns a pointer to a block of at least size bytes
suitably aligned for any use.

</P>
<p><dt><STRONG>size:</STRONG><DD>
<P>
Specifies the size of the memory to return.

</P>
</DL></DL>
<P>
<HR>
<H2><A NAME="FreeMemory">FreeMemory</A></H2>
<P>
Method FreeMemory frees memory that has already been allocated.

</P>
<P>
The format of the FreeMemory method is:

</P>
<blockquote>void FreeMemory ( void *memory ); </blockquote>

<P>

<FONT SIZE=-1>A</FONT> description of each parameter follows:

</P>
<DL><DL>
<p><dt><STRONG>span:</STRONG><DD>
<P>
Specifies the pointer to a block memory to free for reuse.

</P>
</DL></DL>
<P>
<HR>
<H2><A NAME="ReallocateMemory">ReallocateMemory</A></H2>
<P>
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.

</P>
<P>
The format of the ReallocateMemory method is:

</P>
<blockquote>void *ReallocateMemory ( void *memory, const size_t size ); </blockquote>

<P>

<FONT SIZE=-1>A</FONT> description of each parameter follows:

</P>
<DL><DL>
<p><dt><STRONG>memory:</STRONG><DD>
<P>
Method ReallocateMemory returns a pointer to a block of at least size bytes
suitably aligned for any use.

</P>
<p><dt><STRONG>size:</STRONG><DD>
<P>
Specifies the size of the memory to return.

</P>
</DL></DL>

</BODY>

</HTML>
