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><a href="../../../nw/Overview.html">nw</a>::<a href="../../../nw/os/Overview.html">os</a>::<a href="../../../nw/os/IAllocator/Overview.html">IAllocator</a>::Alloc 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><a href="../../../nw/Overview.html">nw</a>::<a href="../../../nw/os/Overview.html">os</a>::<a href="../../../nw/os/IAllocator/Overview.html">IAllocator</a>::Alloc Member Function</h1> 50 <h2>Syntax</h2> 51 <div class="section"> 52 <pre class="definition"> 53void * Alloc( 54 size_t size 55); 56</pre> 57 </div> 58 <h2>Arguments</h2> 59 <div class="section"> 60 <table class="arguments"> 61 <thead> 62 <tr> 63 <td width="15" /> 64 <th>Name</th> 65 <td>Description</td> 66 </tr> 67 </thead> 68 <tr> 69 <td /> 70 <th><CODE>size</CODE></th> 71 <td> 72 </td> 73 </tr> </table> 74 </div> 75 <h2>Return Values</h2> 76 <div class="section"> </div> 77 <h2>Description</h2> 78 <div class="section"> 79 <p>Allocates memory when the alignment specification has been omitted.</p><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, include this line of code:<BR><CODE>using <a href="../../../nw/os/IAllocator/Alloc.html">IAllocator::Alloc</a>;</CODE></p></div> 80 <hr><p>CONFIDENTIAL</p></body> 81</html>