mirror of
https://github.com/wiiu-env/wut.git
synced 2025-01-09 17:59:25 +01:00
158 lines
13 KiB
HTML
158 lines
13 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: D:/Programming/Projects/wut/include/coreinit/unitheap.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>
|
|
<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
|
|
 <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 Page</span></a></li>
|
|
<li><a href="modules.html"><span>Modules</span></a></li>
|
|
<li><a href="annotated.html"><span>Data Structures</span></a></li>
|
|
<li class="current"><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 id="navrow2" class="tabs2">
|
|
<ul class="tablist">
|
|
<li><a href="files.html"><span>File List</span></a></li>
|
|
<li><a href="globals.html"><span>Globals</span></a></li>
|
|
</ul>
|
|
</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">unitheap.h</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="unitheap_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> </div>
|
|
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#ifdef __cplusplus</span></div>
|
|
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div>
|
|
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#endif</span></div>
|
|
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> </div>
|
|
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="group__coreinit__unitheap.html#ga28feade8162e7408de7ca9631ebbb3f4"> 14</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct_m_e_m_unit_heap.html">MEMUnitHeap</a> <a class="code" href="struct_m_e_m_unit_heap.html">MEMUnitHeap</a>;</div>
|
|
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div>
|
|
<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="struct_m_e_m_unit_heap.html"> 16</a></span> <span class="keyword">struct </span><a class="code" href="struct_m_e_m_unit_heap.html">MEMUnitHeap</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"> 18</span> };</div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> UNKNOWN_SIZE(<a class="code" href="struct_m_e_m_unit_heap.html">MEMUnitHeap</a>);</div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <a class="code" href="struct_m_e_m_unit_heap.html">MEMUnitHeap</a> *</div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <a class="code" href="group__coreinit__unitheap.html#ga1473455394fafe1db2ad6eceb3ef0190">MEMCreateUnitHeapEx</a>(<a class="code" href="struct_m_e_m_unit_heap.html">MEMUnitHeap</a> *heap,</div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  uint32_t size,</div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  uint32_t blockSize,</div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  int32_t alignment,</div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  uint16_t flags);</div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="keywordtype">void</span> *</div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <a class="code" href="group__coreinit__unitheap.html#gaab3f24ef36191a8e37bdd0f25334fa22">MEMDestroyUnitHeap</a>(<a class="code" href="struct_m_e_m_unit_heap.html">MEMUnitHeap</a> *heap);</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> <span class="keywordtype">void</span> *</div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <a class="code" href="group__coreinit__unitheap.html#gae1aa174b51dc044eee162dc5434d85d9">MEMAllocFromUnitHeap</a>(<a class="code" href="struct_m_e_m_unit_heap.html">MEMUnitHeap</a> *heap);</div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <a class="code" href="group__coreinit__unitheap.html#ga24dec6b3af5469f55b123b74a8e98187">MEMFreeToUnitHeap</a>(<a class="code" href="struct_m_e_m_unit_heap.html">MEMUnitHeap</a> *heap,</div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="keywordtype">void</span> *block);</div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <a class="code" href="group__coreinit__unitheap.html#ga74d2aacbba4c0a9682b9a1a461885a0d">MEMiDumpUnitHeap</a>(<a class="code" href="struct_m_e_m_unit_heap.html">MEMUnitHeap</a> *heap);</div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> uint32_t</div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <a class="code" href="group__coreinit__unitheap.html#gaa36fd6a9f4d06016c5305cfb9abb7968">MEMCountFreeBlockForUnitHeap</a>(<a class="code" href="struct_m_e_m_unit_heap.html">MEMUnitHeap</a> *heap);</div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> uint32_t</div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <a class="code" href="group__coreinit__unitheap.html#gab878919563f5beb15d2bfdf681d53a4f">MEMCalcHeapSizeForUnitHeap</a>(uint32_t blockSize,</div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  uint32_t count,</div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  int32_t alignment);</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="preprocessor">#ifdef __cplusplus</span></div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> }</div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="preprocessor">#endif</span></div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div>
|
|
<div class="ttc" id="group__coreinit__unitheap_html_gae1aa174b51dc044eee162dc5434d85d9"><div class="ttname"><a href="group__coreinit__unitheap.html#gae1aa174b51dc044eee162dc5434d85d9">MEMAllocFromUnitHeap</a></div><div class="ttdeci">void * MEMAllocFromUnitHeap(MEMUnitHeap *heap)</div></div>
|
|
<div class="ttc" id="group__coreinit__unitheap_html_gaab3f24ef36191a8e37bdd0f25334fa22"><div class="ttname"><a href="group__coreinit__unitheap.html#gaab3f24ef36191a8e37bdd0f25334fa22">MEMDestroyUnitHeap</a></div><div class="ttdeci">void * MEMDestroyUnitHeap(MEMUnitHeap *heap)</div></div>
|
|
<div class="ttc" id="group__coreinit__unitheap_html_ga1473455394fafe1db2ad6eceb3ef0190"><div class="ttname"><a href="group__coreinit__unitheap.html#ga1473455394fafe1db2ad6eceb3ef0190">MEMCreateUnitHeapEx</a></div><div class="ttdeci">MEMUnitHeap * MEMCreateUnitHeapEx(MEMUnitHeap *heap, uint32_t size, uint32_t blockSize, int32_t alignment, uint16_t flags)</div></div>
|
|
<div class="ttc" id="group__coreinit__unitheap_html_ga24dec6b3af5469f55b123b74a8e98187"><div class="ttname"><a href="group__coreinit__unitheap.html#ga24dec6b3af5469f55b123b74a8e98187">MEMFreeToUnitHeap</a></div><div class="ttdeci">void MEMFreeToUnitHeap(MEMUnitHeap *heap, void *block)</div></div>
|
|
<div class="ttc" id="group__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="group__coreinit__unitheap_html_gaa36fd6a9f4d06016c5305cfb9abb7968"><div class="ttname"><a href="group__coreinit__unitheap.html#gaa36fd6a9f4d06016c5305cfb9abb7968">MEMCountFreeBlockForUnitHeap</a></div><div class="ttdeci">uint32_t MEMCountFreeBlockForUnitHeap(MEMUnitHeap *heap)</div></div>
|
|
<div class="ttc" id="wut_8h_html"><div class="ttname"><a href="wut_8h.html">wut.h</a></div></div>
|
|
<div class="ttc" id="struct_m_e_m_unit_heap_html"><div class="ttname"><a href="struct_m_e_m_unit_heap.html">MEMUnitHeap</a></div><div class="ttdef"><b>Definition:</b> <a href="unitheap_8h_source.html#l00016">unitheap.h:16</a></div></div>
|
|
<div class="ttc" id="group__coreinit__unitheap_html_ga74d2aacbba4c0a9682b9a1a461885a0d"><div class="ttname"><a href="group__coreinit__unitheap.html#ga74d2aacbba4c0a9682b9a1a461885a0d">MEMiDumpUnitHeap</a></div><div class="ttdeci">void MEMiDumpUnitHeap(MEMUnitHeap *heap)</div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- 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.10
|
|
</small></address>
|
|
</body>
|
|
</html>
|