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>MEMInitAllocatorForUnitHeap</TITLE>
13
14</HEAD>
15
16
17<BODY>
18
19
20<!-- �^�C�g���� -->
21<H1>MEMInitAllocatorForUnitHeap</H1>
22
23
24<H2>C Specification</H2>
25<PRE class="construction">#include &lt;revolution/mem.h&gt;
26
27void MEMInitAllocatorForUnitHeap(
28MEMAllocator*    pAllocator,
29MEMHeapHandle    heap );</PRE>
30
31
32<H2>Arguments</H2>
33<TABLE border="1">
34
35    <TR>
36	<TD><STRONG><EM><CODE>pAllocator</CODE></EM></STRONG></TD>
37	<TD>Address of the <CODE>MemAllocator</CODE> structure.</TD>
38</TR>
39    <TR>
40<TD><STRONG><EM><CODE>heap</CODE></EM></STRONG></TD>
41<TD>Unit heap handle.</TD>
42    </TR>
43  </TABLE>
44
45
46<H2>Return Values</H2>
47<P>None.</P>
48<H2>Description</H2>
49<P>Initializes the allocator to allocate and deallocate memory from the unit heap.</P>
50<P>It is not possible to allocate a memory block that is larger than the size of the memory block specified in the specified unit heap. In this case, the <A href="MEMAllocFromAllocator.html"><code>MEMAllocFromAllocator</code></A> function returns <CODE>NULL</CODE>.</P>
51<H2>See Also</H2>
52<P class="reference"><A href="MEMInitAllocatorForFrmHeap.html"><CODE>MEMInitAllocatorForFrmHeap</CODE></A>, <A href="MEMInitAllocatorForExpHeap.html"><CODE>MEMInitAllocatorForExpHeap</CODE></A>, <A href="MEMInitAllocatorForOSHeap.html"><CODE>MEMInitAllocatorForOSHeap</CODE></A></P>
53
54
55<H2>Revision History</H2>
56<P>03/01/2006 Initial version.</P>
57
58
59</BODY>
60</HTML>
61