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>MEMAllocFromAllocator</TITLE> 13 14</HEAD> 15 16 17<BODY> 18 19 20<!-- �^�C�g���� --> 21<H1>MEMAllocFromAllocator</H1> 22 23 24<H2>C Specification</H2> 25<PRE class="construction">#include <revolution/mem.h> 26 27void* MEMAllocFromAllocator( MEMAllocator* pAllocator, u32 size );</PRE> 28 29 30<H2>Arguments</H2> 31<TABLE border="1"> 32 33 <TR> 34 <TD><STRONG><EM><CODE>pAllocator</CODE></EM></STRONG></TD> 35 <TD>Address of the <CODE>MemAllocator</CODE> structure.</TD> 36</TR> 37 <TR> 38<TD><STRONG><EM><CODE>size</CODE></EM></STRONG></TD> 39<TD>Size of the memory block in bytes.</TD> 40 </TR> 41 </TABLE> 42 43 44<H2>Return Values</H2> 45<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> 46<H2>Description</H2> 47<P>Allocates a memory block from the allocator.</P> 48<P>The implementation depends on the setting of the allocator and the memory manager related to the allocator.</P> 49<H2>See Also</H2> 50<P class="reference"><A href="MEMFreeToAllocator.html"><CODE>MEMFreeToAllocator</CODE></A></P> 51 52 53<H2>Revision History</H2> 54<P>03/01/2006 Initial version.</P> 55 56 57</BODY> 58</HTML> 59