1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
|
<HTML>
<HEAD>
<TITLE>memory - ImageMagick Memory Allocation Methods</TITLE>
<LINK REV="made" HREF="mailto:magick@wizards.dupont.com">
</HEAD>
<body background="../../images/background.gif">
<!-- INDEX BEGIN -->
<UL>
<LI><A HREF="#NAME">NAME</A>
<LI><A HREF="#SYNOPSIS">SYNOPSIS</A>
<LI><A HREF="#FUNCTION_DESCRIPTIONS">FUNCTION DESCRIPTIONS</A>
<UL>
<LI><A HREF="#AllocateMemory">AllocateMemory</A>
<LI><A HREF="#FreeMemory">FreeMemory</A>
<LI><A HREF="#ReallocateMemory">ReallocateMemory</A>
</UL>
</UL>
<!-- INDEX END -->
<HR>
<P>
<H1><A NAME="NAME">NAME</A></H1>
<P>
memory - ImageMagick Memory Allocation Methods
<P>
<HR>
<H1><A NAME="SYNOPSIS">SYNOPSIS</A></H1>
<P>
void* <STRONG>AllocateMemory</STRONG>(constsize_tsize)
<P>
void <STRONG>FreeMemory</STRONG>(void*memory)
<P>
void* <STRONG>ReallocateMemory</STRONG>(void*memory,constsize_tsize)
<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>
The format of the AllocateMemory method is:
<blockquote>void *AllocateMemory (const size_t size) </blockquote>
<P>
<FONT SIZE=-1>A</FONT> description of each parameter follows:
<DL><DL>
<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.
<DT><STRONG>size:</STRONG><DD>
<P>
Specifies the size of the memory to return.
</DL></DL>
<P>
<HR>
<H2><A NAME="FreeMemory">FreeMemory</A></H2>
<P>
Method FreeMemory frees memory that has already been allocated.
<P>
The format of the FreeMemory method is:
<blockquote>void FreeMemory (void *memory) </blockquote>
<P>
<FONT SIZE=-1>A</FONT> description of each parameter follows:
<DL><DL>
<DT><STRONG>span:</STRONG><DD>
<P>
Specifies the pointer to a block memory to free for reuse.
</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>
The format of the ReallocateMemory method is:
<blockquote>void *ReallocateMemory (void *memory, const size_t size) </blockquote>
<P>
<FONT SIZE=-1>A</FONT> description of each parameter follows:
<DL><DL>
<DT><STRONG>memory:</STRONG><DD>
<P>
Method ReallocateMemory returns a pointer to a block of at least size bytes
suitably aligned for any use.
<DT><STRONG>size:</STRONG><DD>
<P>
Specifies the size of the memory to return.
</DL></DL>
</BODY>
</HTML>
|