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<H2>Syntax</H2>
22<DL><DD><PRE class="construction">
23#include &lt;revolution/mem.h&gt;
24
25void* MEMAllocFromAllocator( MEMAllocator* pAllocator, u32 size );
26</PRE></DD></DL>
27
28<H2>Arguments</H2>
29<TABLE class="arguments" border="1">
30  <TR>
31<TH><STRONG><EM><CODE>pAllocator</CODE></EM></STRONG></TH>
32<TD>Address of the <CODE>MemAllocator</CODE> structure</TD>
33  </TR>
34  <TR>
35<TH>size</TH>
36<TD>Size of the memory block in bytes.</TD>
37  </TR>
38</TABLE>
39
40<H2>Return Values</H2>
41<P>When the memory block is allocated, the start address of this memory block is returned. When memory cannot be allocated, <CODE>NULL</CODE> is returned.</P>
42
43<H2>Description</H2>
44<P>Allocates a memory block from the allocator.</P>
45<P>The implementation depends on the setting of the allocator and the memory manager related to the allocator.</P>
46
47<H2>See Also</H2>
48<P class="reference">
49<A href="MEMFreeToAllocator.html">MEMFreeToAllocator</A>
50</P>
51
52<H2>Revision History</H2>
53<P>
542006/03/01 Initial version.<BR>
55</P>
56
57<hr><p>CONFIDENTIAL</p></body>
58</HTML>
59