wut/group__coreinit__unitheap.html
2019-04-22 10:21:17 +10:00

393 lines
19 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>wut: Unit 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>
<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">1.0.0-beta8</span>
</div>
<div id="projectbrief">Wii U Toolchain</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></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">Unit 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:structMEMUnitHeapFreeBlock"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__unitheap.html#structMEMUnitHeapFreeBlock">MEMUnitHeapFreeBlock</a></td></tr>
<tr class="separator:structMEMUnitHeapFreeBlock"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:structMEMUnitHeap"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__unitheap.html#structMEMUnitHeap">MEMUnitHeap</a></td></tr>
<tr class="separator:structMEMUnitHeap"><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:ga28feade8162e7408de7ca9631ebbb3f4"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="group__coreinit__unitheap.html#structMEMUnitHeap">MEMUnitHeap</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__unitheap.html#ga28feade8162e7408de7ca9631ebbb3f4">MEMUnitHeap</a></td></tr>
<tr class="separator:ga28feade8162e7408de7ca9631ebbb3f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga52ed0421535987a95e08a323635c209a"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="group__coreinit__unitheap.html#structMEMUnitHeapFreeBlock">MEMUnitHeapFreeBlock</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__unitheap.html#ga52ed0421535987a95e08a323635c209a">MEMUnitHeapFreeBlock</a></td></tr>
<tr class="separator:ga52ed0421535987a95e08a323635c209a"><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:ga8381f25a967f0468ec541dbb08086b8c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__coreinit__memheap.html#ga3f18df06d1c3949e74a4b7bcb1c0b88c">MEMHeapHandle</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__unitheap.html#ga8381f25a967f0468ec541dbb08086b8c">MEMCreateUnitHeapEx</a> (void *heap, uint32_t size, uint32_t blockSize, int32_t alignment, uint16_t flags)</td></tr>
<tr class="separator:ga8381f25a967f0468ec541dbb08086b8c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7b6db55c97999037d980d6dec4d8f869"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__unitheap.html#ga7b6db55c97999037d980d6dec4d8f869">MEMDestroyUnitHeap</a> (<a class="el" href="group__coreinit__memheap.html#ga3f18df06d1c3949e74a4b7bcb1c0b88c">MEMHeapHandle</a> heap)</td></tr>
<tr class="separator:ga7b6db55c97999037d980d6dec4d8f869"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga62e51c978682612ecc50b9495dae8973"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__unitheap.html#ga62e51c978682612ecc50b9495dae8973">MEMAllocFromUnitHeap</a> (<a class="el" href="group__coreinit__memheap.html#ga3f18df06d1c3949e74a4b7bcb1c0b88c">MEMHeapHandle</a> heap)</td></tr>
<tr class="separator:ga62e51c978682612ecc50b9495dae8973"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga25ded441e9bedd2ba8bfe87900e354aa"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__unitheap.html#ga25ded441e9bedd2ba8bfe87900e354aa">MEMFreeToUnitHeap</a> (<a class="el" href="group__coreinit__memheap.html#ga3f18df06d1c3949e74a4b7bcb1c0b88c">MEMHeapHandle</a> heap, void *block)</td></tr>
<tr class="separator:ga25ded441e9bedd2ba8bfe87900e354aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga611aab238b8af463d215c8c07478d36f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__unitheap.html#ga611aab238b8af463d215c8c07478d36f">MEMiDumpUnitHeap</a> (<a class="el" href="group__coreinit__memheap.html#ga3f18df06d1c3949e74a4b7bcb1c0b88c">MEMHeapHandle</a> heap)</td></tr>
<tr class="separator:ga611aab238b8af463d215c8c07478d36f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0f2285ecc8ed9ac4fe0b6f0384dee35e"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__unitheap.html#ga0f2285ecc8ed9ac4fe0b6f0384dee35e">MEMCountFreeBlockForUnitHeap</a> (<a class="el" href="group__coreinit__memheap.html#ga3f18df06d1c3949e74a4b7bcb1c0b88c">MEMHeapHandle</a> heap)</td></tr>
<tr class="separator:ga0f2285ecc8ed9ac4fe0b6f0384dee35e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab878919563f5beb15d2bfdf681d53a4f"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__unitheap.html#gab878919563f5beb15d2bfdf681d53a4f">MEMCalcHeapSizeForUnitHeap</a> (uint32_t blockSize, uint32_t count, int32_t alignment)</td></tr>
<tr class="separator:gab878919563f5beb15d2bfdf681d53a4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<hr/><h2 class="groupheader">Data Structure Documentation</h2>
<a name="structMEMUnitHeapFreeBlock" id="structMEMUnitHeapFreeBlock"></a>
<h2 class="memtitle"><span class="permalink"><a href="#structMEMUnitHeapFreeBlock">&#9670;&nbsp;</a></span>MEMUnitHeapFreeBlock</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">struct MEMUnitHeapFreeBlock</td>
</tr>
</table>
</div><div class="memdoc">
<div class="textblock">
<p class="definition">Definition at line <a class="el" href="memunitheap_8h_source.html#l00018">18</a> of file <a class="el" href="memunitheap_8h_source.html">memunitheap.h</a>.</p>
</div><table class="fieldtable">
<tr><th colspan="3">Data Fields</th></tr>
<tr><td class="fieldtype">
<a id="ab4abd8ef6b7eebef7dfa93a7f76ef496"></a><a class="el" href="group__coreinit__unitheap.html#structMEMUnitHeapFreeBlock">MEMUnitHeapFreeBlock</a> *</td>
<td class="fieldname">
next</td>
<td class="fielddoc">
</td></tr>
</table>
</div>
</div>
<a name="structMEMUnitHeap" id="structMEMUnitHeap"></a>
<h2 class="memtitle"><span class="permalink"><a href="#structMEMUnitHeap">&#9670;&nbsp;</a></span>MEMUnitHeap</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">struct MEMUnitHeap</td>
</tr>
</table>
</div><div class="memdoc">
<div class="textblock">
<p class="definition">Definition at line <a class="el" href="memunitheap_8h_source.html#l00025">25</a> of file <a class="el" href="memunitheap_8h_source.html">memunitheap.h</a>.</p>
</div><table class="fieldtable">
<tr><th colspan="3">Data Fields</th></tr>
<tr><td class="fieldtype">
<a id="a0edcfdc3d5cf965f0929bf203c4a1dbb"></a><a class="el" href="group__coreinit__memheap.html#structMEMHeapHeader">MEMHeapHeader</a></td>
<td class="fieldname">
header</td>
<td class="fielddoc">
</td></tr>
<tr><td class="fieldtype">
<a id="a65a9d090eb303fb57c33d24bd4b4b6e2"></a><a class="el" href="group__coreinit__unitheap.html#structMEMUnitHeapFreeBlock">MEMUnitHeapFreeBlock</a> *</td>
<td class="fieldname">
freeBlocks</td>
<td class="fielddoc">
</td></tr>
<tr><td class="fieldtype">
<a id="ab6558f40a619c2502fbc24c880fd4fb0"></a>uint32_t</td>
<td class="fieldname">
blockSize</td>
<td class="fielddoc">
</td></tr>
</table>
</div>
</div>
<h2 class="groupheader">Typedef Documentation</h2>
<a id="ga28feade8162e7408de7ca9631ebbb3f4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga28feade8162e7408de7ca9631ebbb3f4">&#9670;&nbsp;</a></span>MEMUnitHeap</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef struct <a class="el" href="group__coreinit__unitheap.html#structMEMUnitHeap">MEMUnitHeap</a> <a class="el" href="group__coreinit__unitheap.html#structMEMUnitHeap">MEMUnitHeap</a></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="memunitheap_8h_source.html#l00015">15</a> of file <a class="el" href="memunitheap_8h_source.html">memunitheap.h</a>.</p>
</div>
</div>
<a id="ga52ed0421535987a95e08a323635c209a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga52ed0421535987a95e08a323635c209a">&#9670;&nbsp;</a></span>MEMUnitHeapFreeBlock</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef struct <a class="el" href="group__coreinit__unitheap.html#structMEMUnitHeapFreeBlock">MEMUnitHeapFreeBlock</a> <a class="el" href="group__coreinit__unitheap.html#structMEMUnitHeapFreeBlock">MEMUnitHeapFreeBlock</a></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="memunitheap_8h_source.html#l00016">16</a> of file <a class="el" href="memunitheap_8h_source.html">memunitheap.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga8381f25a967f0468ec541dbb08086b8c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8381f25a967f0468ec541dbb08086b8c">&#9670;&nbsp;</a></span>MEMCreateUnitHeapEx()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__coreinit__memheap.html#ga3f18df06d1c3949e74a4b7bcb1c0b88c">MEMHeapHandle</a> MEMCreateUnitHeapEx </td>
<td>(</td>
<td class="paramtype">void *&#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">uint32_t&#160;</td>
<td class="paramname"><em>blockSize</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int32_t&#160;</td>
<td class="paramname"><em>alignment</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint16_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 id="ga7b6db55c97999037d980d6dec4d8f869"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7b6db55c97999037d980d6dec4d8f869">&#9670;&nbsp;</a></span>MEMDestroyUnitHeap()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void* MEMDestroyUnitHeap </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__coreinit__memheap.html#ga3f18df06d1c3949e74a4b7bcb1c0b88c">MEMHeapHandle</a>&#160;</td>
<td class="paramname"><em>heap</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="ga62e51c978682612ecc50b9495dae8973"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga62e51c978682612ecc50b9495dae8973">&#9670;&nbsp;</a></span>MEMAllocFromUnitHeap()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void* MEMAllocFromUnitHeap </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__coreinit__memheap.html#ga3f18df06d1c3949e74a4b7bcb1c0b88c">MEMHeapHandle</a>&#160;</td>
<td class="paramname"><em>heap</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="ga25ded441e9bedd2ba8bfe87900e354aa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga25ded441e9bedd2ba8bfe87900e354aa">&#9670;&nbsp;</a></span>MEMFreeToUnitHeap()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void MEMFreeToUnitHeap </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__coreinit__memheap.html#ga3f18df06d1c3949e74a4b7bcb1c0b88c">MEMHeapHandle</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>block</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="ga611aab238b8af463d215c8c07478d36f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga611aab238b8af463d215c8c07478d36f">&#9670;&nbsp;</a></span>MEMiDumpUnitHeap()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void MEMiDumpUnitHeap </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__coreinit__memheap.html#ga3f18df06d1c3949e74a4b7bcb1c0b88c">MEMHeapHandle</a>&#160;</td>
<td class="paramname"><em>heap</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="ga0f2285ecc8ed9ac4fe0b6f0384dee35e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0f2285ecc8ed9ac4fe0b6f0384dee35e">&#9670;&nbsp;</a></span>MEMCountFreeBlockForUnitHeap()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint32_t MEMCountFreeBlockForUnitHeap </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__coreinit__memheap.html#ga3f18df06d1c3949e74a4b7bcb1c0b88c">MEMHeapHandle</a>&#160;</td>
<td class="paramname"><em>heap</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="gab878919563f5beb15d2bfdf681d53a4f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab878919563f5beb15d2bfdf681d53a4f">&#9670;&nbsp;</a></span>MEMCalcHeapSizeForUnitHeap()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint32_t MEMCalcHeapSizeForUnitHeap </td>
<td>(</td>
<td class="paramtype">uint32_t&#160;</td>
<td class="paramname"><em>blockSize</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint32_t&#160;</td>
<td class="paramname"><em>count</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int32_t&#160;</td>
<td class="paramname"><em>alignment</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</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.15
</small></address>
</body>
</html>