1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3 4<HEAD> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 8.0.0.0 for Windows"> 8 9<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 10 11 <TITLE>MEMAllocFromFrmHeapEx</TITLE> 12 13</HEAD> 14 15 16<BODY> 17 18 19<H1>MEMAllocFromFrmHeapEx</H1> 20 21 22<H2>C Specification</H2> 23<PRE class="construction">#include <revolution/mem.h> 24 25void* MEMAllocFromFrmHeapEx( 26MEMHeapHandle heap, 27u32 size, 28int alignment);</PRE> 29 30 31<H2>Arguments</H2> 32<TABLE border="1"> 33 34 <TR> 35 <TD><STRONG><EM><CODE>heap</CODE></EM></STRONG></TD> 36 <TD>Frame heap handle.</TD> 37</TR> 38 <TR> 39<TD><STRONG><EM><CODE>size</CODE></EM></STRONG></TD> 40<TD>Size of memory block in bytes.</TD> 41 </TR> 42 <TR> 43<TD><STRONG><EM><CODE>alignment</CODE></EM></STRONG></TD> 44<TD>Memory block alignment. The following values can be specified: 4, 8, 16, 32, 64, 128, -4, -8, -16, -32, -64, -128.</TD> 45 </TR> 46 </TABLE> 47 48 49<H2>Return Values</H2> 50<P>When the memory block is allocated, the start address of this memory block is returned. When the memory cannot be allocated, <CODE>NULL</CODE> is returned. </P> 51<H2>Description</H2> 52<P>Allocates a memory block from frame heap. </P> 53<P>Memory block alignment is specified by <STRONG><EM><CODE>alignment</CODE></EM></STRONG>. If the alignment is a negative value, the memory block is allocated from the top of the free region in the heap.</P> 54<H2>See Also</H2> 55<P class="reference"><A href="MEMAllocFromFrmHeap.html"><CODE>MEMAllocFromFrmHeap</CODE></A>, <A href="MEMFreeToFrmHeap.html"><CODE>MEMFreeToFrmHeap</CODE></A>, <A href="MEMCreateFrmHeap.html"><CODE>MEMCreateFrmHeap</CODE></A>, <A href="MEMCreateFrmHeapEx.html"><CODE>MEMCreateFrmHeapEx</CODE></A></P> 56 57 58<H2>Revision History</H2> 59<P>03/01/2006 Initial version.</P> 60 61 62</BODY> 63</HTML> 64