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 name="GENERATOR" content="Microsoft FrontPage 5.0">
7<META http-equiv="Content-Style-Type" content="text/css">
8<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
9<title>OSAllocFromMEM1ArenaLo</title>
10</head>
11
12<body>
13
14<h1>OSAllocFromMEM1ArenaLo</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/os.h&gt;
19
20void* OSAllocFromMEM1ArenaLo(u32 size, u32 align);
21
22#define OSAllocFromArenaLo OSAllocFromMEM1ArenaLo
23</pre></dd></dl>
24
25<h2>Arguments</h2>
26<TABLE class="arguments" border="1" >
27  <tr>
28<TH>size</TH>
29<TD>Size of object to allocate.</TD>
30    </tr>
31  <tr>
32<TH><STRONG><EM><CODE>align</CODE></EM></STRONG></TH>
33<TD>Object alignment and new arena boundary to set (must be a power of 2).</TD>
34    </tr>
35</TABLE>
36
37<h2>Return Values</h2>
38<P>A pointer to the allocated space aligned with <SPAN class="argument">align</SPAN>-byte boundaries. The new low boundary of the arena is also set and aligned with <SPAN class="argument">align</SPAN>-byte boundaries.</P>
39
40<H2>Description</H2>
41<P>Allocates <SPAN class="argument">size</SPAN> bytes from the lower boundary of the arena in internal main memory (MEM1 area).( Extra memory from the arena may be consumed for the alignment (specified by <SPAN class="argument">align</SPAN>).</P>
42
43<P>To maintain backward compatibility, it is also defined with the name <code>OSAllocFromArenaLo</code>.</P>
44
45<h2>See Also</h2>
46<P class="reference">
47<a href="../toc.html#Arena" target="contents">Arena Functions</a>,
48<a href="OSAllocFromMEM1ArenaHi.html">OSAllocFromMEM1ArenaHi</a>,
49<a href="OSAllocFromMEM2ArenaHi.html">OSAllocFromMEM2ArenaHi</a>,
50<a href="OSAllocFromMEM2ArenaLo.html">OSAllocFromMEM2ArenaLo</a>
51</p>
52
53<H2>Revision History</H2>
54<P>
552006/03/01 Initial version.<br>
56</P>
57
58<hr><p>CONFIDENTIAL</p></body>
59</html>