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 <!-- �^�C�g���� --> 12 <TITLE>MEMAllocFromExpHeap</TITLE> 13 14</HEAD> 15 16 17<BODY> 18 19 20<!-- �^�C�g���� --> 21<H1>MEMAllocFromExpHeap</H1> 22 23 24<H2>C Specification</H2> 25<PRE class="construction">#include <revolution/mem.h> 26 27void* MEMAllocFromExpHeap( 28 MEMHeapHandle heap, 29 u32 size );</PRE> 30 31 32<H2>Arguments</H2> 33<TABLE border="1"> 34 35 <TR> 36 <TD><STRONG><EM><CODE>heap</CODE></EM></STRONG></TD> 37 <TD>Expanded heap handle.</TD> 38</TR> 39 <TR> 40<TD><STRONG><EM><CODE>size</CODE></EM></STRONG></TD> 41<TD>Size of memory block in bytes.</TD> 42 </TR> 43 </TABLE> 44 45 46<H2>Return Values</H2> 47<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> 48 49 50<H2>Description</H2> 51<P>Allocates a memory block from the expanded heap. The memory block has an alignment of 4.</P> 52<P>If the memory block is allocatable, the actual size of the memory block may be greater than the specified size. To determine the actual allocated size in bytes, use the <A href="MEMGetSizeForMBlockExpHeap.html"><CODE>MEMGetSizeForMBlockExpHeap</CODE></A> function.</P> 53<H2>See Also</H2> 54<P class="reference"><A href="MEMAllocFromExpHeapEx.html"><CODE>MEMAllocFromExpHeapEx</CODE></A>, <A href="MEMFreeToExpHeap.html"><CODE>MEMFreeToExpHeap</CODE></A>, <A href="MEMCreateExpHeap.html"><CODE>MEMCreateExpHeap</CODE></A>, <A href="MEMCreateExpHeapEx.html"><CODE>MEMCreateExpHeapEx</CODE></A></P> 55 56 57<H2>Revision History</H2> 58<P>03/01/2006 Initial version.</P> 59 60 61</BODY> 62</HTML> 63