wut/group__coreinit__blockheap.html
2016-10-09 21:24:57 +01:00

428 lines
20 KiB
HTML

<!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"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.10"/>
<title>WUT: Block Heap</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">WUT
&#160;<span id="projectnumber">0.1</span>
</div>
<div id="projectbrief">Wii U Toolchain</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.10 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">Block Heap<div class="ingroups"><a class="el" href="group__coreinit.html">coreinit</a></div></div> </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_m_e_m_block_heap_tracking.html">MEMBlockHeapTracking</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_m_e_m_block_heap_block.html">MEMBlockHeapBlock</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_m_e_m_block_heap.html">MEMBlockHeap</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:ga45858f039e5b8daf978d07f9a1391e00"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="struct_m_e_m_block_heap_block.html">MEMBlockHeapBlock</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__blockheap.html#ga45858f039e5b8daf978d07f9a1391e00">MEMBlockHeapBlock</a></td></tr>
<tr class="separator:ga45858f039e5b8daf978d07f9a1391e00"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae0f581440e5db253705623676676c41e"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="struct_m_e_m_block_heap_tracking.html">MEMBlockHeapTracking</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__blockheap.html#gae0f581440e5db253705623676676c41e">MEMBlockHeapTracking</a></td></tr>
<tr class="separator:gae0f581440e5db253705623676676c41e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaafcc77af210f6c02bf83bc3eeffd48fa"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="struct_m_e_m_block_heap.html">MEMBlockHeap</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__blockheap.html#gaafcc77af210f6c02bf83bc3eeffd48fa">MEMBlockHeap</a></td></tr>
<tr class="separator:gaafcc77af210f6c02bf83bc3eeffd48fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gab75cc0977766e91b841c5babd18b3f74"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_m_e_m_block_heap.html">MEMBlockHeap</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__blockheap.html#gab75cc0977766e91b841c5babd18b3f74">MEMInitBlockHeap</a> (<a class="el" href="struct_m_e_m_block_heap.html">MEMBlockHeap</a> *heap, void *start, void *end, <a class="el" href="struct_m_e_m_block_heap_tracking.html">MEMBlockHeapTracking</a> *blocks, uint32_t size, uint32_t flags)</td></tr>
<tr class="separator:gab75cc0977766e91b841c5babd18b3f74"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7a7cc7a2c8bf7cc93564a851d3e5b6c1"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__blockheap.html#ga7a7cc7a2c8bf7cc93564a851d3e5b6c1">MEMDestroyBlockHeap</a> (<a class="el" href="struct_m_e_m_block_heap.html">MEMBlockHeap</a> *heap)</td></tr>
<tr class="separator:ga7a7cc7a2c8bf7cc93564a851d3e5b6c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf05e5b7db71c6ad3a7db8e86c746036d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__blockheap.html#gaf05e5b7db71c6ad3a7db8e86c746036d">MEMAddBlockHeapTracking</a> (<a class="el" href="struct_m_e_m_block_heap.html">MEMBlockHeap</a> *heap, <a class="el" href="struct_m_e_m_block_heap_tracking.html">MEMBlockHeapTracking</a> *tracking, uint32_t size)</td></tr>
<tr class="separator:gaf05e5b7db71c6ad3a7db8e86c746036d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5865039d5a0c97619a2d9fa36beb586e"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__blockheap.html#ga5865039d5a0c97619a2d9fa36beb586e">MEMAllocFromBlockHeapAt</a> (<a class="el" href="struct_m_e_m_block_heap.html">MEMBlockHeap</a> *heap, void *addr, uint32_t size)</td></tr>
<tr class="separator:ga5865039d5a0c97619a2d9fa36beb586e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6c268e7329597fc00ede8e724aa1b4b5"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__blockheap.html#ga6c268e7329597fc00ede8e724aa1b4b5">MEMAllocFromBlockHeapEx</a> (<a class="el" href="struct_m_e_m_block_heap.html">MEMBlockHeap</a> *heap, uint32_t size, int32_t align)</td></tr>
<tr class="separator:ga6c268e7329597fc00ede8e724aa1b4b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5f8aed32c6374faabc6f4c1a18d95a1a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__blockheap.html#ga5f8aed32c6374faabc6f4c1a18d95a1a">MEMFreeToBlockHeap</a> (<a class="el" href="struct_m_e_m_block_heap.html">MEMBlockHeap</a> *heap, void *data)</td></tr>
<tr class="separator:ga5f8aed32c6374faabc6f4c1a18d95a1a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaba4c273d25a89c4c0d3a6118f328b589"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__blockheap.html#gaba4c273d25a89c4c0d3a6118f328b589">MEMGetAllocatableSizeForBlockHeapEx</a> (<a class="el" href="struct_m_e_m_block_heap.html">MEMBlockHeap</a> *heap, int32_t align)</td></tr>
<tr class="separator:gaba4c273d25a89c4c0d3a6118f328b589"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga64a0d59050b0e67d76828fa5a70f12db"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__blockheap.html#ga64a0d59050b0e67d76828fa5a70f12db">MEMGetTrackingLeftInBlockHeap</a> (<a class="el" href="struct_m_e_m_block_heap.html">MEMBlockHeap</a> *heap)</td></tr>
<tr class="separator:ga64a0d59050b0e67d76828fa5a70f12db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6118279ab379e908db08b64b10b355a8"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__blockheap.html#ga6118279ab379e908db08b64b10b355a8">MEMGetTotalFreeSizeForBlockHeap</a> (<a class="el" href="struct_m_e_m_block_heap.html">MEMBlockHeap</a> *heap)</td></tr>
<tr class="separator:ga6118279ab379e908db08b64b10b355a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<h2 class="groupheader">Typedef Documentation</h2>
<a class="anchor" id="ga45858f039e5b8daf978d07f9a1391e00"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef struct <a class="el" href="struct_m_e_m_block_heap_block.html">MEMBlockHeapBlock</a> <a class="el" href="struct_m_e_m_block_heap_block.html">MEMBlockHeapBlock</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="blockheap_8h_source.html#l00015">15</a> of file <a class="el" href="blockheap_8h_source.html">blockheap.h</a>.</p>
</div>
</div>
<a class="anchor" id="gae0f581440e5db253705623676676c41e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef struct <a class="el" href="struct_m_e_m_block_heap_tracking.html">MEMBlockHeapTracking</a> <a class="el" href="struct_m_e_m_block_heap_tracking.html">MEMBlockHeapTracking</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="blockheap_8h_source.html#l00016">16</a> of file <a class="el" href="blockheap_8h_source.html">blockheap.h</a>.</p>
</div>
</div>
<a class="anchor" id="gaafcc77af210f6c02bf83bc3eeffd48fa"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef struct <a class="el" href="struct_m_e_m_block_heap.html">MEMBlockHeap</a> <a class="el" href="struct_m_e_m_block_heap.html">MEMBlockHeap</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="blockheap_8h_source.html#l00017">17</a> of file <a class="el" href="blockheap_8h_source.html">blockheap.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="gab75cc0977766e91b841c5babd18b3f74"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="struct_m_e_m_block_heap.html">MEMBlockHeap</a>* MEMInitBlockHeap </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_m_e_m_block_heap.html">MEMBlockHeap</a> *&#160;</td>
<td class="paramname"><em>heap</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void *&#160;</td>
<td class="paramname"><em>start</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void *&#160;</td>
<td class="paramname"><em>end</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="struct_m_e_m_block_heap_tracking.html">MEMBlockHeapTracking</a> *&#160;</td>
<td class="paramname"><em>blocks</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint32_t&#160;</td>
<td class="paramname"><em>size</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint32_t&#160;</td>
<td class="paramname"><em>flags</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="ga7a7cc7a2c8bf7cc93564a851d3e5b6c1"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void* MEMDestroyBlockHeap </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_m_e_m_block_heap.html">MEMBlockHeap</a> *&#160;</td>
<td class="paramname"><em>heap</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="gaf05e5b7db71c6ad3a7db8e86c746036d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int MEMAddBlockHeapTracking </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_m_e_m_block_heap.html">MEMBlockHeap</a> *&#160;</td>
<td class="paramname"><em>heap</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="struct_m_e_m_block_heap_tracking.html">MEMBlockHeapTracking</a> *&#160;</td>
<td class="paramname"><em>tracking</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint32_t&#160;</td>
<td class="paramname"><em>size</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="ga5865039d5a0c97619a2d9fa36beb586e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void* MEMAllocFromBlockHeapAt </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_m_e_m_block_heap.html">MEMBlockHeap</a> *&#160;</td>
<td class="paramname"><em>heap</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void *&#160;</td>
<td class="paramname"><em>addr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint32_t&#160;</td>
<td class="paramname"><em>size</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="ga6c268e7329597fc00ede8e724aa1b4b5"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void* MEMAllocFromBlockHeapEx </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_m_e_m_block_heap.html">MEMBlockHeap</a> *&#160;</td>
<td class="paramname"><em>heap</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint32_t&#160;</td>
<td class="paramname"><em>size</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int32_t&#160;</td>
<td class="paramname"><em>align</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="ga5f8aed32c6374faabc6f4c1a18d95a1a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void MEMFreeToBlockHeap </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_m_e_m_block_heap.html">MEMBlockHeap</a> *&#160;</td>
<td class="paramname"><em>heap</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void *&#160;</td>
<td class="paramname"><em>data</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="gaba4c273d25a89c4c0d3a6118f328b589"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint32_t MEMGetAllocatableSizeForBlockHeapEx </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_m_e_m_block_heap.html">MEMBlockHeap</a> *&#160;</td>
<td class="paramname"><em>heap</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int32_t&#160;</td>
<td class="paramname"><em>align</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="ga64a0d59050b0e67d76828fa5a70f12db"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint32_t MEMGetTrackingLeftInBlockHeap </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_m_e_m_block_heap.html">MEMBlockHeap</a> *&#160;</td>
<td class="paramname"><em>heap</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="ga6118279ab379e908db08b64b10b355a8"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint32_t MEMGetTotalFreeSizeForBlockHeap </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_m_e_m_block_heap.html">MEMBlockHeap</a> *&#160;</td>
<td class="paramname"><em>heap</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.10
</small></address>
</body>
</html>