wut/memallocator_8h_source.html

184 lines
25 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" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>wut: /home/runner/work/wut/wut/include/coreinit/memallocator.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 id="projectrow">
<td id="projectalign">
<div id="projectname">wut<span id="projectnumber">&#160;v1.9.1</span>
</div>
<div id="projectbrief">Wii U Toolchain</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @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:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
<!-- 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">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</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">memallocator.h</div></div>
</div><!--header-->
<div class="contents">
<a href="memallocator_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#include &lt;<a class="code" href="wut_8h.html">wut.h</a>&gt;</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="preprocessor">#include &quot;<a class="code" href="memheap_8h.html">memheap.h</a>&quot;</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span> </div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> </div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"><a class="line" href="group__coreinit__memallocator.html#ga216a066acb384fada6d227ba5570b22b"> 17</a></span><span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code hl_struct" href="group__coreinit__memallocator.html#structMEMAllocatorFunctions">MEMAllocatorFunctions</a> <a class="code hl_struct" href="group__coreinit__memallocator.html#structMEMAllocatorFunctions">MEMAllocatorFunctions</a>;</div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"><a class="line" href="group__coreinit__memallocator.html#ga7f8db7649b9786b9048cfb37b05151ac"> 18</a></span><span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code hl_struct" href="group__coreinit__memallocator.html#structMEMAllocator">MEMAllocator</a> <a class="code hl_struct" href="group__coreinit__memallocator.html#structMEMAllocator">MEMAllocator</a>;</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> </div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="group__coreinit__memallocator.html#ga9afb33d7a7f12ba59debb055b8acf157"> 20</a></span><span class="keyword">typedef</span> <span class="keywordtype">void</span> *(*MEMAllocatorAllocFn)(<a class="code hl_struct" href="group__coreinit__memallocator.html#structMEMAllocator">MEMAllocator</a> *allocator, uint32_t size);</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"><a class="line" href="group__coreinit__memallocator.html#gaaebbcd1077bda5b691dbc621eda89474"> 21</a></span><span class="keyword">typedef</span> void (*<a class="code hl_typedef" href="group__coreinit__memallocator.html#gaaebbcd1077bda5b691dbc621eda89474">MEMAllocatorFreeFn</a>)(<a class="code hl_struct" href="group__coreinit__memallocator.html#structMEMAllocator">MEMAllocator</a> *allocator, <span class="keywordtype">void</span> *ptr);</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> </div>
<div class="foldopen" id="foldopen00024" data-start="{" data-end="};">
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="group__coreinit__memallocator.html"> 24</a></span><span class="keyword">struct </span><a class="code hl_struct" href="group__coreinit__memallocator.html#structMEMAllocator">MEMAllocator</a></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span>{</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"><a class="line" href="group__coreinit__memallocator.html#a3c836c1d989b5543cbf19300e25e2071"> 27</a></span> <a class="code hl_struct" href="group__coreinit__memallocator.html#structMEMAllocatorFunctions">MEMAllocatorFunctions</a> *<a class="code hl_variable" href="group__coreinit__memallocator.html#a3c836c1d989b5543cbf19300e25e2071">funcs</a>;</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="group__coreinit__memallocator.html#a895a604b52e99ffe949053a1172596f2"> 29</a></span> <a class="code hl_struct" href="group__coreinit__memheap.html#structMEMHeapHeader">MEMHeapHandle</a> <a class="code hl_variable" href="group__coreinit__memallocator.html#a895a604b52e99ffe949053a1172596f2">heap</a>;</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="group__coreinit__memallocator.html#a4864c3686205158c9cab83fa95c2a15a"> 31</a></span> uint32_t <a class="code hl_variable" href="group__coreinit__memallocator.html#a4864c3686205158c9cab83fa95c2a15a">align</a>;</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> WUT_UNKNOWN_BYTES(4);</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span>};</div>
</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span>WUT_CHECK_OFFSET(<a class="code hl_struct" href="group__coreinit__memallocator.html#structMEMAllocator">MEMAllocator</a>, 0x0, funcs);</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span>WUT_CHECK_OFFSET(<a class="code hl_struct" href="group__coreinit__memallocator.html#structMEMAllocator">MEMAllocator</a>, 0x4, heap);</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span>WUT_CHECK_OFFSET(<a class="code hl_struct" href="group__coreinit__memallocator.html#structMEMAllocator">MEMAllocator</a>, 0x8, align);</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span>WUT_CHECK_SIZE(<a class="code hl_struct" href="group__coreinit__memallocator.html#structMEMAllocator">MEMAllocator</a>, 0x10);</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> </div>
<div class="foldopen" id="foldopen00040" data-start="{" data-end="};">
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"><a class="line" href="group__coreinit__memallocator.html"> 40</a></span><span class="keyword">struct </span><a class="code hl_struct" href="group__coreinit__memallocator.html#structMEMAllocatorFunctions">MEMAllocatorFunctions</a></div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span>{</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="group__coreinit__memallocator.html#a2f092db829a0467a1f1401a6f089ffc6"> 42</a></span> <a class="code hl_typedef" href="group__coreinit__memallocator.html#ga9afb33d7a7f12ba59debb055b8acf157">MEMAllocatorAllocFn</a> <a class="code hl_variable" href="group__coreinit__memallocator.html#a2f092db829a0467a1f1401a6f089ffc6">alloc</a>;</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="group__coreinit__memallocator.html#a632dcb7af99e35944c841fc79e2c00de"> 43</a></span> <a class="code hl_typedef" href="group__coreinit__memallocator.html#gaaebbcd1077bda5b691dbc621eda89474">MEMAllocatorFreeFn</a> <a class="code hl_variable" href="group__coreinit__memallocator.html#a632dcb7af99e35944c841fc79e2c00de">free</a>;</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span>};</div>
</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span>WUT_CHECK_OFFSET(<a class="code hl_struct" href="group__coreinit__memallocator.html#structMEMAllocatorFunctions">MEMAllocatorFunctions</a>, 0x0, alloc);</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span>WUT_CHECK_OFFSET(<a class="code hl_struct" href="group__coreinit__memallocator.html#structMEMAllocatorFunctions">MEMAllocatorFunctions</a>, 0x4, free);</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span>WUT_CHECK_SIZE(<a class="code hl_struct" href="group__coreinit__memallocator.html#structMEMAllocatorFunctions">MEMAllocatorFunctions</a>, 0x8);</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> </div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span><span class="keywordtype">void</span> *</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"><a class="line" href="group__coreinit__memallocator.html#ga126587c359d2195fa72ef0540982896c"> 55</a></span><a class="code hl_function" href="group__coreinit__memallocator.html#ga126587c359d2195fa72ef0540982896c">MEMAllocFromAllocator</a>(<a class="code hl_struct" href="group__coreinit__memallocator.html#structMEMAllocator">MEMAllocator</a> *allocator,</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> uint32_t size);</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> </div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span><span class="keywordtype">void</span></div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"><a class="line" href="group__coreinit__memallocator.html#gad690a1a0f3306ba6d4b19606015cfae5"> 64</a></span><a class="code hl_function" href="group__coreinit__memallocator.html#gad690a1a0f3306ba6d4b19606015cfae5">MEMFreeToAllocator</a>(<a class="code hl_struct" href="group__coreinit__memallocator.html#structMEMAllocator">MEMAllocator</a> *allocator,</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> <span class="keywordtype">void</span> *ptr);</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> </div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span><span class="keywordtype">void</span></div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"><a class="line" href="group__coreinit__memallocator.html#ga9ad741a0b8d5957abb23c43836641206"> 71</a></span><a class="code hl_function" href="group__coreinit__memallocator.html#ga9ad741a0b8d5957abb23c43836641206">MEMInitAllocatorForExpHeap</a>(<a class="code hl_struct" href="group__coreinit__memallocator.html#structMEMAllocator">MEMAllocator</a> *allocator,</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> <a class="code hl_struct" href="group__coreinit__memheap.html#structMEMHeapHeader">MEMHeapHandle</a> heap,</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> uint32_t alignment);</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> </div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span><span class="keywordtype">void</span></div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"><a class="line" href="group__coreinit__memallocator.html#gae20714b2aab4d982f7256a59fafa641a"> 79</a></span><a class="code hl_function" href="group__coreinit__memallocator.html#gae20714b2aab4d982f7256a59fafa641a">MEMInitAllocatorForFrmHeap</a>(<a class="code hl_struct" href="group__coreinit__memallocator.html#structMEMAllocator">MEMAllocator</a> *allocator,</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> <a class="code hl_struct" href="group__coreinit__memheap.html#structMEMHeapHeader">MEMHeapHandle</a> heap,</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> uint32_t alignment);</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> </div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span><span class="keywordtype">void</span></div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"><a class="line" href="group__coreinit__memallocator.html#ga5be6952a78f7e20ab984b897147a048a"> 87</a></span><a class="code hl_function" href="group__coreinit__memallocator.html#ga5be6952a78f7e20ab984b897147a048a">MEMInitAllocatorForUnitHeap</a>(<a class="code hl_struct" href="group__coreinit__memallocator.html#structMEMAllocator">MEMAllocator</a> *allocator,</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> <a class="code hl_struct" href="group__coreinit__memheap.html#structMEMHeapHeader">MEMHeapHandle</a> heap);</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> </div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span><span class="keywordtype">void</span></div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"><a class="line" href="group__coreinit__memallocator.html#gaf350a66da4bac29f9a1d6f13748aa339"> 94</a></span><a class="code hl_function" href="group__coreinit__memallocator.html#gaf350a66da4bac29f9a1d6f13748aa339">MEMInitAllocatorForDefaultHeap</a>(<a class="code hl_struct" href="group__coreinit__memallocator.html#structMEMAllocator">MEMAllocator</a> *allocator);</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> </div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span><span class="keywordtype">void</span></div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"><a class="line" href="group__coreinit__memallocator.html#ga973e10e454cdc427a6d4e92292f134db"> 100</a></span><a class="code hl_function" href="group__coreinit__memallocator.html#ga973e10e454cdc427a6d4e92292f134db">MEMInitAllocatorForBlockHeap</a>(<a class="code hl_struct" href="group__coreinit__memallocator.html#structMEMAllocator">MEMAllocator</a> *allocator,</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> <a class="code hl_struct" href="group__coreinit__memheap.html#structMEMHeapHeader">MEMHeapHandle</a> heap,</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> uint32_t alignment);</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> </div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span><span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span>}</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> </div>
<div class="ttc" id="agroup__coreinit__memallocator_html_a2f092db829a0467a1f1401a6f089ffc6"><div class="ttname"><a href="group__coreinit__memallocator.html#a2f092db829a0467a1f1401a6f089ffc6">MEMAllocatorFunctions::alloc</a></div><div class="ttdeci">MEMAllocatorAllocFn alloc</div><div class="ttdef"><b>Definition</b> <a href="memallocator_8h_source.html#l00042">memallocator.h:42</a></div></div>
<div class="ttc" id="agroup__coreinit__memallocator_html_a3c836c1d989b5543cbf19300e25e2071"><div class="ttname"><a href="group__coreinit__memallocator.html#a3c836c1d989b5543cbf19300e25e2071">MEMAllocator::funcs</a></div><div class="ttdeci">MEMAllocatorFunctions * funcs</div><div class="ttdoc">Points to the alloc/free functions.</div><div class="ttdef"><b>Definition</b> <a href="memallocator_8h_source.html#l00027">memallocator.h:27</a></div></div>
<div class="ttc" id="agroup__coreinit__memallocator_html_a4864c3686205158c9cab83fa95c2a15a"><div class="ttname"><a href="group__coreinit__memallocator.html#a4864c3686205158c9cab83fa95c2a15a">MEMAllocator::align</a></div><div class="ttdeci">uint32_t align</div><div class="ttdoc">The alignment the allocator will use.</div><div class="ttdef"><b>Definition</b> <a href="memallocator_8h_source.html#l00031">memallocator.h:31</a></div></div>
<div class="ttc" id="agroup__coreinit__memallocator_html_a632dcb7af99e35944c841fc79e2c00de"><div class="ttname"><a href="group__coreinit__memallocator.html#a632dcb7af99e35944c841fc79e2c00de">MEMAllocatorFunctions::free</a></div><div class="ttdeci">MEMAllocatorFreeFn free</div><div class="ttdef"><b>Definition</b> <a href="memallocator_8h_source.html#l00043">memallocator.h:43</a></div></div>
<div class="ttc" id="agroup__coreinit__memallocator_html_a895a604b52e99ffe949053a1172596f2"><div class="ttname"><a href="group__coreinit__memallocator.html#a895a604b52e99ffe949053a1172596f2">MEMAllocator::heap</a></div><div class="ttdeci">MEMHeapHandle heap</div><div class="ttdoc">The heap handle.</div><div class="ttdef"><b>Definition</b> <a href="memallocator_8h_source.html#l00029">memallocator.h:29</a></div></div>
<div class="ttc" id="agroup__coreinit__memallocator_html_ga126587c359d2195fa72ef0540982896c"><div class="ttname"><a href="group__coreinit__memallocator.html#ga126587c359d2195fa72ef0540982896c">MEMAllocFromAllocator</a></div><div class="ttdeci">void * MEMAllocFromAllocator(MEMAllocator *allocator, uint32_t size)</div><div class="ttdoc">Allocates memory from the allocator.</div></div>
<div class="ttc" id="agroup__coreinit__memallocator_html_ga5be6952a78f7e20ab984b897147a048a"><div class="ttname"><a href="group__coreinit__memallocator.html#ga5be6952a78f7e20ab984b897147a048a">MEMInitAllocatorForUnitHeap</a></div><div class="ttdeci">void MEMInitAllocatorForUnitHeap(MEMAllocator *allocator, MEMHeapHandle heap)</div><div class="ttdoc">Initializes an allocator from a Unit Heap.</div></div>
<div class="ttc" id="agroup__coreinit__memallocator_html_ga973e10e454cdc427a6d4e92292f134db"><div class="ttname"><a href="group__coreinit__memallocator.html#ga973e10e454cdc427a6d4e92292f134db">MEMInitAllocatorForBlockHeap</a></div><div class="ttdeci">void MEMInitAllocatorForBlockHeap(MEMAllocator *allocator, MEMHeapHandle heap, uint32_t alignment)</div><div class="ttdoc">Initializes an allocator from a Block Heap.</div></div>
<div class="ttc" id="agroup__coreinit__memallocator_html_ga9ad741a0b8d5957abb23c43836641206"><div class="ttname"><a href="group__coreinit__memallocator.html#ga9ad741a0b8d5957abb23c43836641206">MEMInitAllocatorForExpHeap</a></div><div class="ttdeci">void MEMInitAllocatorForExpHeap(MEMAllocator *allocator, MEMHeapHandle heap, uint32_t alignment)</div><div class="ttdoc">Initializes an allocator from an Expanded Heap.</div></div>
<div class="ttc" id="agroup__coreinit__memallocator_html_ga9afb33d7a7f12ba59debb055b8acf157"><div class="ttname"><a href="group__coreinit__memallocator.html#ga9afb33d7a7f12ba59debb055b8acf157">MEMAllocatorAllocFn</a></div><div class="ttdeci">void *(* MEMAllocatorAllocFn)(MEMAllocator *allocator, uint32_t size)</div><div class="ttdef"><b>Definition</b> <a href="memallocator_8h_source.html#l00020">memallocator.h:20</a></div></div>
<div class="ttc" id="agroup__coreinit__memallocator_html_gaaebbcd1077bda5b691dbc621eda89474"><div class="ttname"><a href="group__coreinit__memallocator.html#gaaebbcd1077bda5b691dbc621eda89474">MEMAllocatorFreeFn</a></div><div class="ttdeci">void(* MEMAllocatorFreeFn)(MEMAllocator *allocator, void *ptr)</div><div class="ttdef"><b>Definition</b> <a href="memallocator_8h_source.html#l00021">memallocator.h:21</a></div></div>
<div class="ttc" id="agroup__coreinit__memallocator_html_gad690a1a0f3306ba6d4b19606015cfae5"><div class="ttname"><a href="group__coreinit__memallocator.html#gad690a1a0f3306ba6d4b19606015cfae5">MEMFreeToAllocator</a></div><div class="ttdeci">void MEMFreeToAllocator(MEMAllocator *allocator, void *ptr)</div><div class="ttdoc">Frees memory back to the allocator.</div></div>
<div class="ttc" id="agroup__coreinit__memallocator_html_gae20714b2aab4d982f7256a59fafa641a"><div class="ttname"><a href="group__coreinit__memallocator.html#gae20714b2aab4d982f7256a59fafa641a">MEMInitAllocatorForFrmHeap</a></div><div class="ttdeci">void MEMInitAllocatorForFrmHeap(MEMAllocator *allocator, MEMHeapHandle heap, uint32_t alignment)</div><div class="ttdoc">Initializes an allocator from a Frame Heap.</div></div>
<div class="ttc" id="agroup__coreinit__memallocator_html_gaf350a66da4bac29f9a1d6f13748aa339"><div class="ttname"><a href="group__coreinit__memallocator.html#gaf350a66da4bac29f9a1d6f13748aa339">MEMInitAllocatorForDefaultHeap</a></div><div class="ttdeci">void MEMInitAllocatorForDefaultHeap(MEMAllocator *allocator)</div><div class="ttdoc">Initializes an allocator from the Default Heap.</div></div>
<div class="ttc" id="agroup__coreinit__memallocator_html_structMEMAllocator"><div class="ttname"><a href="group__coreinit__memallocator.html#structMEMAllocator">MEMAllocator</a></div><div class="ttdoc">Holds context information that will be used to allocate and free memory.</div><div class="ttdef"><b>Definition</b> <a href="memallocator_8h_source.html#l00024">memallocator.h:25</a></div></div>
<div class="ttc" id="agroup__coreinit__memallocator_html_structMEMAllocatorFunctions"><div class="ttname"><a href="group__coreinit__memallocator.html#structMEMAllocatorFunctions">MEMAllocatorFunctions</a></div><div class="ttdoc">The alloc/free functions.</div><div class="ttdef"><b>Definition</b> <a href="memallocator_8h_source.html#l00040">memallocator.h:41</a></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:52</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="awut_8h_html"><div class="ttname"><a href="wut_8h.html">wut.h</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>