<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>GNU Radio 3.2.2 C++ API: gc_aligned_alloc.h File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript"> $(document).ready(initResizable); </script> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.3 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">GNU Radio 3.2.2 C++ API</div> </td> </tr> </tbody> </table> </div> </div> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> initNavTree('gc__aligned__alloc_8h.html',''); </script> <div id="doc-content"> <div class="header"> <div class="summary"> <a href="#func-members">Functions</a> </div> <div class="headertitle"> <h1>gc_aligned_alloc.h File Reference</h1> </div> </div> <div class="contents"> <div class="textblock"><code>#include <boost/shared_ptr.hpp></code><br/> </div><div class="textblock"><div class="dynheader"> Include dependency graph for gc_aligned_alloc.h:</div> <div class="dyncontent"> <div class="center"><img src="gc__aligned__alloc_8h__incl.png" border="0" usemap="#gc__aligned__alloc_8h" alt=""/></div> <map name="gc__aligned__alloc_8h" id="gc__aligned__alloc_8h"> </map> </div> </div> <p><a href="gc__aligned__alloc_8h_source.html">Go to the source code of this file.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="func-members"></a> Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="gc__aligned__alloc_8h.html#a4a9e5ef7daf94a2f81b0925048421cdc">gc_aligned_alloc</a> (size_t size, size_t alignment=128)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return pointer to chunk of storage of size size bytes. The allocation will be aligned to an <code>alignment</code> boundary. <a href="#a4a9e5ef7daf94a2f81b0925048421cdc"></a><br/></td></tr> </table> <hr/><h2>Function Documentation</h2> <a class="anchor" id="a4a9e5ef7daf94a2f81b0925048421cdc"></a><!-- doxytag: member="gc_aligned_alloc.h::gc_aligned_alloc" ref="a4a9e5ef7daf94a2f81b0925048421cdc" args="(size_t size, size_t alignment=128)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void* gc_aligned_alloc </td> <td>(</td> <td class="paramtype">size_t </td> <td class="paramname"><em>size</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">size_t </td> <td class="paramname"><em>alignment</em> = <code>128</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Return pointer to chunk of storage of size size bytes. The allocation will be aligned to an <code>alignment</code> boundary. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">size</td><td>is the number of bytes to allocate </td></tr> <tr><td class="paramname">alignment</td><td>is the minimum storage alignment in bytes; must be a power of 2.</td></tr> </table> </dd> </dl> <p>Throws if can't allocate memory. The storage should be freed with "free" when done. The memory is initialized to zero. </p> </div> </div> </div> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="gc__aligned__alloc_8h.html">gc_aligned_alloc.h</a> </li> <li class="footer">Generated on Thu Feb 17 2011 for GNU Radio 3.2.2 C++ API by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </li> </ul> </div> </body> </html>