Sophie

Sophie

distrib > Mandriva > 9.0 > i586 > by-pkgid > 30cfb9c460c63391a64d7f1d01e1bf02 > files > 167

libMagick5-devel-5.4.8.3-2mdk.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><HTML>
<HEAD><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<TITLE>memory - ImageMagick Memory Allocation Methods</TITLE>
<link rel="StyleSheet" href="../magick.css" type="text/css">
</HEAD>

<body bgcolor="#FFFFFF" text="#000000" link="#0085c0" alink="#0085c0"  vlink="#800080">

<A NAME="__index__"></A>
<!-- INDEX BEGIN -->

<UL>

	<LI><A HREF="#name">
<FONT SIZE=-1>NAME</FONT></A>
	<LI><A HREF="#synopsis">
<FONT SIZE=-1>SYNOPSIS</FONT></A>
	<LI><A HREF="#function descriptions">
<FONT SIZE=-1>FUNCTION</FONT> 
<FONT SIZE=-1>DESCRIPTIONS</FONT></A>
	<UL>

		<LI><A HREF="#acquirememory">AcquireMemory</A>
		<LI><A HREF="#clonememory">CloneMemory</A>
		<LI><A HREF="#liberatememory">LiberateMemory</A>
		<LI><A HREF="#reacquirememory">ReacquireMemory</A>
	</UL>

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

<HR>
<P>
<H1><A NAME="name">
<FONT SIZE=-1>NAME</FONT></A></H1>
<P>memory - ImageMagick Memory Allocation Methods</P>
<P>
<HR>
<H1><A NAME="synopsis">
<FONT SIZE=-1>SYNOPSIS</FONT></A></H1>
<P>void * <STRONG>AcquireMemory</STRONG>( const size_t size );</P>
<P>void * <STRONG>CloneMemory</STRONG>( void *destination, const void *source, const size_t size );</P>
<P>void  <STRONG>LiberateMemory</STRONG>( void ** memory );</P>
<P>void  <STRONG>ReacquireMemory</STRONG>( void ** memory, const size_t size );</P>
<P>
<HR>
<H1><A NAME="function descriptions">
<FONT SIZE=-1>FUNCTION</FONT> 
<FONT SIZE=-1>DESCRIPTIONS</FONT></A></H1>
<P>
<H2><A NAME="acquirememory">AcquireMemory</A></H2>
<blockquote>AcquireMemory() returns a pointer to a block of memory at least size bytes suitably aligned for any use. </blockquote><P>The format of the AcquireMemory method is:</P>
<blockquote>void *AcquireMemory ( const size_t size ); </blockquote><P>
<FONT SIZE=-1>A</FONT> description of each parameter follows:</P>
<DL><DT><DD><DL>
<dd><p></p><dt><STRONG><A NAME="item_o_size%3A">size:</A></STRONG><BR>
<DD>
The size of the memory in bytes to allocate.
<P></P></DL></DL>
<P>
<H2><A NAME="clonememory">CloneMemory</A></H2>
<blockquote>CloneMemory() copies size bytes from memory area source to the destination. Copying between objects that overlap will take place correctly. It returns destination. </blockquote><P>The format of the CloneMemory method is:</P>
<blockquote>void *CloneMemory ( void *destination, const void *source, const size_t size ); </blockquote><P>
<FONT SIZE=-1>A</FONT> description of each parameter follows:</P>
<DL><DT><DD><DL>
<dd><p></p><dt><STRONG>size:</STRONG><BR>
<DD>
The size of the memory in bytes to allocate.
<P></P></DL></DL>
<P>
<H2><A NAME="liberatememory">LiberateMemory</A></H2>
<blockquote>LiberateMemory() frees memory that has already been allocated, and NULLs the pointer to it. </blockquote><P>The format of the LiberateMemory method is:</P>
<blockquote>void LiberateMemory ( void **memory ); </blockquote><P>
<FONT SIZE=-1>A</FONT> description of each parameter follows:</P>
<DL><DT><DD><DL>
<dd><p></p><dt><STRONG><A NAME="item_o_memory%3A">memory:</A></STRONG><BR>
<DD>

<FONT SIZE=-1>A</FONT> pointer to a block of memory to free for reuse.
<P></P></DL></DL>
<P>
<H2><A NAME="reacquirememory">ReacquireMemory</A></H2>
<blockquote>ReacquireMemory() 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. </blockquote><P>The format of the ReacquireMemory method is:</P>
<blockquote>void ReacquireMemory ( void **memory, const size_t size ); </blockquote><P>
<FONT SIZE=-1>A</FONT> description of each parameter follows:</P>
<DL><DT><DD><DL>
<dd><p></p><dt><STRONG>memory:</STRONG><BR>
<DD>

<FONT SIZE=-1>A</FONT> pointer to a memory allocation.  On return the pointer may change but the contents of the original allocation will not.
<P></P>
<dd><p></p><dt><STRONG>size:</STRONG><BR>
<DD>
The new size of the allocated memory.
</DL></DL>

</BODY>

</HTML>