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>MEMSetAllocModeForExpHeap</TITLE> 13 14</HEAD> 15 16 17<BODY> 18 19 20<!-- �^�C�g���� --> 21<H1>MEMSetAllocModeForExpHeap</H1> 22 23 24<H2>C Specification</H2> 25<PRE class="construction">#include <revolution/mem.h> 26 27u16 MEMSetAllocModeForExpHeap( MEMHeapHandle heap, u16 mode );</PRE> 28 29 30<H2>Arguments</H2> 31<TABLE border="1"> 32 33 <TR> 34 <TD><STRONG><EM><CODE>heap</CODE></EM></STRONG></TD> 35 <TD>Expanded heap handle.</TD> 36</TR> 37 <TR> 38<TD><STRONG><EM><CODE>mode</CODE></EM></STRONG></TD> 39<TD>Memory allocation mode (see description below).</TD> 40 </TR> 41 </TABLE> 42 43 44<H2>Return Values</H2> 45<P>Returns the memory allocation mode of the current expanded heap before configuration.</P> 46<H2>Description</H2> 47<P>Sets the memory allocation mode of the expanded heap.</P> 48<P>The mode is specified with <STRONG><EM><CODE>mode</CODE></EM></STRONG>.</P> 49<TABLE border="1"> 50 51 <TR> 52<TD><CODE>MEM_EXPHEAP_ALLOC_MODE_FIRST</CODE></TD> 53<TD>Allocates a memory block from the first free region that is at least the size of the memory block to allocate.</TD> 54 </TR> 55 <TR> 56<TD><CODE>MEM_EXPHEAP_ALLOC_MODE_NEAR</CODE></TD> 57<TD>Searches for a free region nearest in size to the memory block to allocate, then allocates the memory block from this free region.</TD> 58 </TR> 59 60</TABLE> 61<P>Immediately after the heap is created, the <CODE>MEM_EXPHEAP_ALLOC_MODE_FIRST</CODE> state is entered.</P> 62<H2>See Also</H2> 63<P class="reference"><A href="MEMGetAllocModeForExpHeap.html"><CODE>MEMGetAllocModeForExpHeap</CODE></A></P> 64 65 66<H2>Revision History</H2> 67<P>2006/03/01 Initial version.</P> 68 69 70<hr> 71<P>CONFIDENTIAL</p> 72</BODY> 73</HTML> 74