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); 56template <typename TObject> 57TObject * Alloc( 58 int count, 59 <span>u8</span> alignment = <a href="../../../nw/os/IAllocator/DEFAULT_ALIGNMENT.html">DEFAULT_ALIGNMENT</a> 60); 61</pre> 62 </div> 63 <h2>List of Overloaded Member Functions</h2> 64 <div class="section"> 65 <table class="members"> 66 <tr> 67 <td> 68 <a href="./Alloc(0).html">Alloc ( size_t ) </a> 69 </td> 70 <td>Allocates memory when the alignment specification has been omitted.</td> 71 </tr> 72 <tr> 73 <td> 74 <a href="./Alloc(1).html">Alloc ( int, u8 ) </a> 75 </td> 76 <td>Allocates the memory needed for the specified number of objects.</td> 77 </tr> </table> 78 </div> 79 <h2>Description of Alloc ( size_t )</h2> 80 <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> 81 <h2>Description of Alloc ( int, u8 ) </h2> 82 <div class="section"> 83 <p>Allocates the memory needed for the specified number of objects.</p> 84 </div> 85 <hr><p>CONFIDENTIAL</p></body> 86</html> 87