1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
3  <head>
4    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5    <meta http-equiv="Content-Style-Type" content="text/css" />
6    <link rel="stylesheet" href="../../../css/manpage.css" type="text/css" />
7    <title>Alloc</title>
8  </head>
9  <body>
10    <h1><CODE>nw::os::IAllocator::Alloc</CODE> Member Function</h1>
11    <h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14virtual void * Alloc(
15     size_t size,
16     <span>u8</span> alignment
17) = 0;
18</pre>
19    </div>
20    <h2>Arguments</h2>
21    <div class="section">
22      <table class="arguments">
23        <thead>
24          <tr>
25            <td width="15" />
26            <th>Name</th>
27            <td>Description</td>
28          </tr>
29        </thead>
30        <tr>
31          <td />
32          <th><CODE>size</CODE></th>
33          <td>
34            </td>
35        </tr>
36        <tr>
37          <td />
38          <th>alignment</th>
39          <td>
40            </td>
41        </tr> </table>
42    </div>
43    <h2>Return Values</h2>
44    <div class="section"> </div>
45    <h2>Description</h2>
46    <div class="section">
47      <p>Allocates memory.</p>
48    </div>
49    <h1><CODE>nw::os::IAllocator::Alloc</CODE> Member Function</h1>
50    <h2>Syntax</h2>
51    <div class="section">
52      <pre class="definition">
53void * Alloc(
54     size_t size
55);
56
57template &lt;typename TObject&gt;
58TObject * Alloc(
59     size_t size,
60     <span>u8</span> alignment = <a href="../../../nw/os/IAllocator/DEFAULT_ALIGNMENT.html">DEFAULT_ALIGNMENT</a>
61);
62</pre>
63    </div>
64    <h2>List of Overloaded Member Functions</h2>
65    <div class="section">
66      <table class="members">
67        <tr>
68          <td>
69            <a href="./Alloc(0).html">Alloc ( size_t ) </a>
70          </td>
71          <td>Allocates memory when the alignment specification has been omitted.</td>
72        </tr>
73        <tr>
74          <td>
75            <a href="./Alloc(1).html">Alloc ( size_t, u8 ) </a>
76          </td>
77          <td>Allocates the memory needed for the specified number of objects.</td>
78        </tr> </table>
79    </div>
80    <h2>Description of Alloc ( size_t )</h2>
81    <div class="section"><p>Note that overload of the base class is hidden if override of <CODE>Alloc(size, alignment)</CODE> is defined for a derivative class.  To directly use this function from a reference to a sub-class, describe this code: <CODE><a href="../../../nw/os/IAllocator/Alloc.html">IAllocator::Alloc</a>; </CODE></p></div>
82    <h2>Description of <CODE>Alloc ( size_t, u8 ) </CODE></h2>
83    <div class="section">
84      <p>Allocates the memory needed for the specified number of objects.</p>
85    </div>
86  <hr><p>CONFIDENTIAL</p></body>
87</html>