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