mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-05 03:04:16 +01:00
160 lines
18 KiB
HTML
160 lines
18 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.17"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>wut: /home/ash/Code/wut2/include/coreinit/memunitheap.h Source File</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
|
|
 <span id="projectnumber">1.0.0-beta9</span>
|
|
</div>
|
|
<div id="projectbrief">Wii U Toolchain</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.17 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&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&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>
|
|
<!-- 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 id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_5050f3de292bd66075be80c4b119f1df.html">coreinit</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">memunitheap.h</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="memunitheap_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#pragma once</span></div>
|
|
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#include <<a class="code" href="wut_8h.html">wut.h</a>></span></div>
|
|
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="preprocessor">#include "<a class="code" href="memheap_8h.html">memheap.h</a>"</span></div>
|
|
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>  </div>
|
|
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#ifdef __cplusplus</span></div>
|
|
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div>
|
|
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#endif</span></div>
|
|
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  </div>
|
|
<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="group__coreinit__unitheap.html#ga28feade8162e7408de7ca9631ebbb3f4"> 15</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="group__coreinit__unitheap.html#structMEMUnitHeap">MEMUnitHeap</a> <a class="code" href="group__coreinit__unitheap.html#structMEMUnitHeap">MEMUnitHeap</a>;</div>
|
|
<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="group__coreinit__unitheap.html#ga52ed0421535987a95e08a323635c209a"> 16</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="group__coreinit__unitheap.html#structMEMUnitHeapFreeBlock">MEMUnitHeapFreeBlock</a> <a class="code" href="group__coreinit__unitheap.html#structMEMUnitHeapFreeBlock">MEMUnitHeapFreeBlock</a>;</div>
|
|
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  </div>
|
|
<div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="group__coreinit__unitheap.html"> 18</a></span> <span class="keyword">struct </span><a class="code" href="group__coreinit__unitheap.html#structMEMUnitHeapFreeBlock">MEMUnitHeapFreeBlock</a></div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> {</div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="group__coreinit__unitheap.html#ab4abd8ef6b7eebef7dfa93a7f76ef496"> 20</a></span>  <a class="code" href="group__coreinit__unitheap.html#structMEMUnitHeapFreeBlock">MEMUnitHeapFreeBlock</a> *<a class="code" href="group__coreinit__unitheap.html#ab4abd8ef6b7eebef7dfa93a7f76ef496">next</a>;</div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> };</div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> WUT_CHECK_OFFSET(<a class="code" href="group__coreinit__unitheap.html#structMEMUnitHeapFreeBlock">MEMUnitHeapFreeBlock</a>, 0x00, next);</div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> WUT_CHECK_SIZE(<a class="code" href="group__coreinit__unitheap.html#structMEMUnitHeapFreeBlock">MEMUnitHeapFreeBlock</a>, 0x04);</div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  </div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="group__coreinit__unitheap.html"> 25</a></span> <span class="keyword">struct </span>WUT_PACKED <a class="code" href="group__coreinit__unitheap.html#structMEMUnitHeap">MEMUnitHeap</a></div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> {</div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="group__coreinit__unitheap.html#a0edcfdc3d5cf965f0929bf203c4a1dbb"> 27</a></span>  <a class="code" href="group__coreinit__memheap.html#structMEMHeapHeader">MEMHeapHeader</a> <a class="code" href="group__coreinit__unitheap.html#a0edcfdc3d5cf965f0929bf203c4a1dbb">header</a>;</div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="group__coreinit__unitheap.html#a65a9d090eb303fb57c33d24bd4b4b6e2"> 28</a></span>  <a class="code" href="group__coreinit__unitheap.html#structMEMUnitHeapFreeBlock">MEMUnitHeapFreeBlock</a> *<a class="code" href="group__coreinit__unitheap.html#a65a9d090eb303fb57c33d24bd4b4b6e2">freeBlocks</a>;</div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="group__coreinit__unitheap.html#ab6558f40a619c2502fbc24c880fd4fb0"> 29</a></span>  uint32_t <a class="code" href="group__coreinit__unitheap.html#ab6558f40a619c2502fbc24c880fd4fb0">blockSize</a>;</div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> };</div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> WUT_CHECK_OFFSET(<a class="code" href="group__coreinit__unitheap.html#structMEMUnitHeap">MEMUnitHeap</a>, 0x00, header);</div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> WUT_CHECK_OFFSET(<a class="code" href="group__coreinit__unitheap.html#structMEMUnitHeap">MEMUnitHeap</a>, 0x40, freeBlocks);</div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> WUT_CHECK_OFFSET(<a class="code" href="group__coreinit__unitheap.html#structMEMUnitHeap">MEMUnitHeap</a>, 0x44, blockSize);</div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> WUT_CHECK_SIZE(<a class="code" href="group__coreinit__unitheap.html#structMEMUnitHeap">MEMUnitHeap</a>, 0x48);</div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  </div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <a class="code" href="group__coreinit__memheap.html#structMEMHeapHeader">MEMHeapHandle</a></div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <a class="code" href="group__coreinit__unitheap.html#ga8381f25a967f0468ec541dbb08086b8c">MEMCreateUnitHeapEx</a>(<span class="keywordtype">void</span> *heap,</div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  uint32_t size,</div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  uint32_t blockSize,</div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  int32_t alignment,</div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  uint16_t flags);</div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  </div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="keywordtype">void</span> *</div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <a class="code" href="group__coreinit__unitheap.html#ga7b6db55c97999037d980d6dec4d8f869">MEMDestroyUnitHeap</a>(<a class="code" href="group__coreinit__memheap.html#structMEMHeapHeader">MEMHeapHandle</a> heap);</div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  </div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="keywordtype">void</span> *</div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <a class="code" href="group__coreinit__unitheap.html#ga62e51c978682612ecc50b9495dae8973">MEMAllocFromUnitHeap</a>(<a class="code" href="group__coreinit__memheap.html#structMEMHeapHeader">MEMHeapHandle</a> heap);</div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  </div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <a class="code" href="group__coreinit__unitheap.html#ga25ded441e9bedd2ba8bfe87900e354aa">MEMFreeToUnitHeap</a>(<a class="code" href="group__coreinit__memheap.html#structMEMHeapHeader">MEMHeapHandle</a> heap,</div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordtype">void</span> *block);</div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  </div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <a class="code" href="group__coreinit__unitheap.html#ga611aab238b8af463d215c8c07478d36f">MEMiDumpUnitHeap</a>(<a class="code" href="group__coreinit__memheap.html#structMEMHeapHeader">MEMHeapHandle</a> heap);</div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  </div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> uint32_t</div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <a class="code" href="group__coreinit__unitheap.html#ga0f2285ecc8ed9ac4fe0b6f0384dee35e">MEMCountFreeBlockForUnitHeap</a>(<a class="code" href="group__coreinit__memheap.html#structMEMHeapHeader">MEMHeapHandle</a> heap);</div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  </div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> uint32_t</div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <a class="code" href="group__coreinit__unitheap.html#gab878919563f5beb15d2bfdf681d53a4f">MEMCalcHeapSizeForUnitHeap</a>(uint32_t blockSize,</div>
|
|
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  uint32_t count,</div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  int32_t alignment);</div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  </div>
|
|
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="preprocessor">#ifdef __cplusplus</span></div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> }</div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="preprocessor">#endif</span></div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  </div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<div class="ttc" id="agroup__coreinit__unitheap_html_a0edcfdc3d5cf965f0929bf203c4a1dbb"><div class="ttname"><a href="group__coreinit__unitheap.html#a0edcfdc3d5cf965f0929bf203c4a1dbb">MEMUnitHeap::header</a></div><div class="ttdeci">MEMHeapHeader header</div><div class="ttdef"><b>Definition:</b> <a href="memunitheap_8h_source.html#l00027">memunitheap.h:27</a></div></div>
|
|
<div class="ttc" id="agroup__coreinit__unitheap_html_ab4abd8ef6b7eebef7dfa93a7f76ef496"><div class="ttname"><a href="group__coreinit__unitheap.html#ab4abd8ef6b7eebef7dfa93a7f76ef496">MEMUnitHeapFreeBlock::next</a></div><div class="ttdeci">MEMUnitHeapFreeBlock * next</div><div class="ttdef"><b>Definition:</b> <a href="memunitheap_8h_source.html#l00020">memunitheap.h:20</a></div></div>
|
|
<div class="ttc" id="agroup__coreinit__unitheap_html_a65a9d090eb303fb57c33d24bd4b4b6e2"><div class="ttname"><a href="group__coreinit__unitheap.html#a65a9d090eb303fb57c33d24bd4b4b6e2">MEMUnitHeap::freeBlocks</a></div><div class="ttdeci">MEMUnitHeapFreeBlock * freeBlocks</div><div class="ttdef"><b>Definition:</b> <a href="memunitheap_8h_source.html#l00028">memunitheap.h:28</a></div></div>
|
|
<div class="ttc" id="amemheap_8h_html"><div class="ttname"><a href="memheap_8h.html">memheap.h</a></div></div>
|
|
<div class="ttc" id="agroup__coreinit__unitheap_html_ga611aab238b8af463d215c8c07478d36f"><div class="ttname"><a href="group__coreinit__unitheap.html#ga611aab238b8af463d215c8c07478d36f">MEMiDumpUnitHeap</a></div><div class="ttdeci">void MEMiDumpUnitHeap(MEMHeapHandle heap)</div></div>
|
|
<div class="ttc" id="awut_8h_html"><div class="ttname"><a href="wut_8h.html">wut.h</a></div></div>
|
|
<div class="ttc" id="agroup__coreinit__unitheap_html_ga7b6db55c97999037d980d6dec4d8f869"><div class="ttname"><a href="group__coreinit__unitheap.html#ga7b6db55c97999037d980d6dec4d8f869">MEMDestroyUnitHeap</a></div><div class="ttdeci">void * MEMDestroyUnitHeap(MEMHeapHandle heap)</div></div>
|
|
<div class="ttc" id="agroup__coreinit__unitheap_html_gab878919563f5beb15d2bfdf681d53a4f"><div class="ttname"><a href="group__coreinit__unitheap.html#gab878919563f5beb15d2bfdf681d53a4f">MEMCalcHeapSizeForUnitHeap</a></div><div class="ttdeci">uint32_t MEMCalcHeapSizeForUnitHeap(uint32_t blockSize, uint32_t count, int32_t alignment)</div></div>
|
|
<div class="ttc" id="agroup__coreinit__unitheap_html_ga8381f25a967f0468ec541dbb08086b8c"><div class="ttname"><a href="group__coreinit__unitheap.html#ga8381f25a967f0468ec541dbb08086b8c">MEMCreateUnitHeapEx</a></div><div class="ttdeci">MEMHeapHandle MEMCreateUnitHeapEx(void *heap, uint32_t size, uint32_t blockSize, int32_t alignment, uint16_t flags)</div></div>
|
|
<div class="ttc" id="agroup__coreinit__unitheap_html_structMEMUnitHeap"><div class="ttname"><a href="group__coreinit__unitheap.html#structMEMUnitHeap">MEMUnitHeap</a></div><div class="ttdef"><b>Definition:</b> <a href="memunitheap_8h_source.html#l00025">memunitheap.h:25</a></div></div>
|
|
<div class="ttc" id="agroup__coreinit__unitheap_html_structMEMUnitHeapFreeBlock"><div class="ttname"><a href="group__coreinit__unitheap.html#structMEMUnitHeapFreeBlock">MEMUnitHeapFreeBlock</a></div><div class="ttdef"><b>Definition:</b> <a href="memunitheap_8h_source.html#l00018">memunitheap.h:18</a></div></div>
|
|
<div class="ttc" id="agroup__coreinit__unitheap_html_ga25ded441e9bedd2ba8bfe87900e354aa"><div class="ttname"><a href="group__coreinit__unitheap.html#ga25ded441e9bedd2ba8bfe87900e354aa">MEMFreeToUnitHeap</a></div><div class="ttdeci">void MEMFreeToUnitHeap(MEMHeapHandle heap, void *block)</div></div>
|
|
<div class="ttc" id="agroup__coreinit__unitheap_html_ab6558f40a619c2502fbc24c880fd4fb0"><div class="ttname"><a href="group__coreinit__unitheap.html#ab6558f40a619c2502fbc24c880fd4fb0">MEMUnitHeap::blockSize</a></div><div class="ttdeci">uint32_t blockSize</div><div class="ttdef"><b>Definition:</b> <a href="memunitheap_8h_source.html#l00029">memunitheap.h:29</a></div></div>
|
|
<div class="ttc" id="agroup__coreinit__unitheap_html_ga0f2285ecc8ed9ac4fe0b6f0384dee35e"><div class="ttname"><a href="group__coreinit__unitheap.html#ga0f2285ecc8ed9ac4fe0b6f0384dee35e">MEMCountFreeBlockForUnitHeap</a></div><div class="ttdeci">uint32_t MEMCountFreeBlockForUnitHeap(MEMHeapHandle heap)</div></div>
|
|
<div class="ttc" id="agroup__coreinit__memheap_html_structMEMHeapHeader"><div class="ttname"><a href="group__coreinit__memheap.html#structMEMHeapHeader">MEMHeapHeader</a></div><div class="ttdef"><b>Definition:</b> <a href="memheap_8h_source.html#l00051">memheap.h:51</a></div></div>
|
|
<div class="ttc" id="agroup__coreinit__unitheap_html_ga62e51c978682612ecc50b9495dae8973"><div class="ttname"><a href="group__coreinit__unitheap.html#ga62e51c978682612ecc50b9495dae8973">MEMAllocFromUnitHeap</a></div><div class="ttdeci">void * MEMAllocFromUnitHeap(MEMHeapHandle heap)</div></div>
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.17
|
|
</small></address>
|
|
</body>
|
|
</html>
|