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>MEMResizeForMBlockExpHeap</TITLE>
12
13</HEAD>
14
15
16<BODY>
17
18
19<H1>MEMResizeForMBlockExpHeap</H1>
20
21
22<H2>Syntax</H2>
23<DL><DD><PRE class="definition">
24#include &lt;revolution/mem.h&gt;
25
26u32 MEMResizeForMBlockExpHeap(
27                    	MEMHeapHandle    heap,
28                    	void*            memBlock,
29                    	u32              size );
30</PRE></DD></DL>
31
32<H2>Arguments</H2>
33<TABLE class="arguments" border="1">
34  <TR>
35<TH><STRONG><EM><CODE>heap</CODE></EM></STRONG></TH>
36<TD>Expanded heap handle</TD>
37  </TR>
38  <TR>
39<TH><STRONG><EM><CODE>memBlock</CODE></EM></STRONG></TH>
40<TD>Pointer to the memory block to be resized</TD>
41  </TR>
42  <TR>
43<TH>size</TH>
44<TD>Size in bytes of the memory block change</TD>
45  </TR>
46</TABLE>
47
48<H2>Return Values</H2>
49<P>If the function succeeds, returns the size in bytes of the changed memory block. Otherwise, zero is returned.</P>
50
51<H2>Description</H2>
52<P>Changes the size of the memory block allocated from the expanded heap.</P>
53<P>When increasing the current size of the memory block, there must be enough free space after the memory block to increase the size. If there is insufficient available space, the function fails and returns zero. If the size increase of the memory block is successful, the size increase may be greater than the specified size.</P>
54<P>When reducinng the memory block size, reducing the size may be impossible because a free region is not created when reducing the memory block size by only a few bytes. In this case, the current size of the memory block is returned.</P>
55
56<H2>See Also</H2>
57<P class="reference">
58<A href="MEMAllocFromExpHeap.html">MEMAllocFromExpHeap</A>,
59<A href="MEMAllocFromExpHeapEx.html">MEMAllocFromExpHeapEx</A>,
60<A href="MEMCreateExpHeap.html">MEMCreateExpHeap</A>,
61<A href="MEMCreateExpHeapEx.html">MEMCreateExpHeapEx</A>
62</P>
63
64<H2>Revision History</H2>
65<P>
662006/03/01 Initial version.<BR>
67</P>
68
69<hr><p>CONFIDENTIAL</p></body>
70</HTML>
71