<ahref="memblockheap_8h.html">Go to the documentation of this file.</a><divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> <spanclass="preprocessor">#pragma once</span></div><divclass="line"><aname="l00002"></a><spanclass="lineno"> 2</span> <spanclass="preprocessor">#include <<aclass="code"href="wut_8h.html">wut.h</a>></span></div><divclass="line"><aname="l00003"></a><spanclass="lineno"> 3</span> <spanclass="preprocessor">#include "<aclass="code"href="memheap_8h.html">memheap.h</a>"</span></div><divclass="line"><aname="l00004"></a><spanclass="lineno"> 4</span> </div><divclass="line"><aname="l00011"></a><spanclass="lineno"> 11</span> <spanclass="preprocessor">#ifdef __cplusplus</span></div><divclass="line"><aname="l00012"></a><spanclass="lineno"> 12</span> <spanclass="keyword">extern</span><spanclass="stringliteral">"C"</span> {</div><divclass="line"><aname="l00013"></a><spanclass="lineno"> 13</span> <spanclass="preprocessor">#endif</span></div><divclass="line"><aname="l00014"></a><spanclass="lineno"> 14</span> </div><divclass="line"><aname="l00015"></a><spanclass="lineno"><aclass="line"href="group__coreinit__memblockheap.html#ga45858f039e5b8daf978d07f9a1391e00"> 15</a></span> <spanclass="keyword">typedef</span><spanclass="keyword">struct </span><aclass="code"href="group__coreinit__memblockheap.html#structMEMBlockHeapBlock">MEMBlockHeapBlock</a><aclass="code"href="group__coreinit__memblockheap.html#structMEMBlockHeapBlock">MEMBlockHeapBlock</a>;</div><divclass="line"><aname="l00016"></a><spanclass="lineno"><aclass="line"href="group__coreinit__memblockheap.html#gae0f581440e5db253705623676676c41e"> 16</a></span> <spanclass="keyword">typedef</span><spanclass="keyword">struct </span><aclass="code"href="group__coreinit__memblockheap.html#structMEMBlockHeapTracking">MEMBlockHeapTracking</a><aclass="code"href="group__coreinit__memblockheap.html#structMEMBlockHeapTracking">MEMBlockHeapTracking</a>;</div><divclass="line"><aname="l00017"></a><spanclass="lineno"><aclass="line"href="group__coreinit__memblockheap.html#gaafcc77af210f6c02bf83bc3eeffd48fa"> 17</a></span> <spanclass="keyword">typedef</span><spanclass="keyword">struct </span><aclass="code"href="group__coreinit__memblockheap.html#structMEMBlockHeap">MEMBlockHeap</a><aclass="code"href="group__coreinit__memblockheap.html#structMEMBlockHeap">MEMBlockHeap</a>;</div><divclass="line"><aname="l00018"></a><spanclass="lineno"> 18</span> </div><divclass="line"><aname="l00019"></a><spanclass="lineno"><aclass="line"href="group__coreinit__memblockheap.html"> 19</a></span> <spanclass="keyword">struct </span><aclass="code"href="group__coreinit__memblockheap.html#structMEMBlockHeapTracking">MEMBlockHeapTracking</a></div><divclass="line"><aname="l00020"></a><spanclass="lineno"> 20</span> {</div><divclass="line"><aname="l00021"></a><spanclass="lineno"> 21</span>  WUT_UNKNOWN_BYTES(0x8);</div><divclass="line"><aname="l00022"></a><spanclass="lineno"> 22</span> </div><divclass="line"><aname="l00024"></a><spanclass="lineno"><aclass="line"href="group__coreinit__memblockheap.html#a4f75f3d0d6821b9881231c1d487fe063"> 24</a></span> <aclass="code"href="group__coreinit__memblockheap.html#structMEMBlockHeapBlock">MEMBlockHeapBlock</a> *<aclass="code"href="group__coreinit__memblockheap.html#a4f75f3d0d6821b9881231c1d487fe063">blocks</a>;</div><divclass="line"><aname="l00025"></a><spanclass="lineno"> 25</span> </div><divclass="line"><aname="l00027"></a><spanclass="lineno"><aclass="line"href="group__coreinit__memblockheap.html#a359235f8ff745acf36826f7859097c4f"> 27</a></span>  uint32_t <aclass="code"href="group__coreinit__memblockheap.html#a359235f8ff745acf36826f7859097c4f">blockCount</a>;</div><divclass="line"><aname="l00028"></a><spanclass="lineno"> 28</span> };</div><divclass=
<divclass="ttc"id="group__coreinit__memblockheap_html_a9a3455df6b2b78a203ed590ebcef3e15"><divclass="ttname"><ahref="group__coreinit__memblockheap.html#a9a3455df6b2b78a203ed590ebcef3e15">MEMBlockHeapBlock::prev</a></div><divclass="ttdeci">MEMBlockHeapBlock * prev</div><divclass="ttdoc">Link to previous block, note that this is only set for allocated blocks.</div><divclass="ttdef"><b>Definition:</b><ahref="memblockheap_8h_source.html#l00045">memblockheap.h:45</a></div></div>
<divclass="ttc"id="group__coreinit__memblockheap_html_a2280d787d75d6e93f7c8b771a597d65a"><divclass="ttname"><ahref="group__coreinit__memblockheap.html#a2280d787d75d6e93f7c8b771a597d65a">MEMBlockHeapBlock::next</a></div><divclass="ttdeci">MEMBlockHeapBlock * next</div><divclass="ttdoc">Link to next block, always set.</div><divclass="ttdef"><b>Definition:</b><ahref="memblockheap_8h_source.html#l00048">memblockheap.h:48</a></div></div>
<divclass="ttc"id="group__coreinit__memblockheap_html_a3f489ef875557f592a5c0dd7bcbfbcc5"><divclass="ttname"><ahref="group__coreinit__memblockheap.html#a3f489ef875557f592a5c0dd7bcbfbcc5">MEMBlockHeap::firstBlock</a></div><divclass="ttdeci">MEMBlockHeapBlock * firstBlock</div><divclass="ttdoc">First block in this heap.</div><divclass="ttdef"><b>Definition:</b><ahref="memblockheap_8h_source.html#l00068">memblockheap.h:68</a></div></div>
<divclass="ttc"id="group__coreinit__memblockheap_html_abd9603779f3c7d87e0aff060d2033262"><divclass="ttname"><ahref="group__coreinit__memblockheap.html#abd9603779f3c7d87e0aff060d2033262">MEMBlockHeap::lastBlock</a></div><divclass="ttdeci">MEMBlockHeapBlock * lastBlock</div><divclass="ttdoc">Last block in this heap.</div><divclass="ttdef"><b>Definition:</b><ahref="memblockheap_8h_source.html#l00071">memblockheap.h:71</a></div></div>
<divclass="ttc"id="group__coreinit__memblockheap_html_a4f75f3d0d6821b9881231c1d487fe063"><divclass="ttname"><ahref="group__coreinit__memblockheap.html#a4f75f3d0d6821b9881231c1d487fe063">MEMBlockHeapTracking::blocks</a></div><divclass="ttdeci">MEMBlockHeapBlock * blocks</div><divclass="ttdoc">Pointer to first memory block.</div><divclass="ttdef"><b>Definition:</b><ahref="memblockheap_8h_source.html#l00024">memblockheap.h:24</a></div></div>
<divclass="ttc"id="group__coreinit__memblockheap_html_a90bce83e474fb5ecdead9d23129c1769"><divclass="ttname"><ahref="group__coreinit__memblockheap.html#a90bce83e474fb5ecdead9d23129c1769">MEMBlockHeap::defaultBlock</a></div><divclass="ttdeci">MEMBlockHeapBlock defaultBlock</div><divclass="ttdoc">Default block, used so we don't have an empty block list.</div><divclass="ttdef"><b>Definition:</b><ahref="memblockheap_8h_source.html#l00065">memblockheap.h:65</a></div></div>
<divclass="ttc"id="group__coreinit__memblockheap_html_a6be42b3eb9e8a90b22026f94742b5c28"><divclass="ttname"><ahref="group__coreinit__memblockheap.html#a6be42b3eb9e8a90b22026f94742b5c28">MEMBlockHeapBlock::isFree</a></div><divclass="ttdeci">BOOL isFree</div><divclass="ttdoc">TRUE if the block is free, FALSE if allocated.</div><divclass="ttdef"><b>Definition:</b><ahref="memblockheap_8h_source.html#l00042">memblockheap.h:42</a></div></div>
<divclass="ttc"id="group__coreinit__memblockheap_html_a359235f8ff745acf36826f7859097c4f"><divclass="ttname"><ahref="group__coreinit__memblockheap.html#a359235f8ff745acf36826f7859097c4f">MEMBlockHeapTracking::blockCount</a></div><divclass="ttdeci">uint32_t blockCount</div><divclass="ttdoc">Number of blocks in this tracking heap.</div><divclass="ttdef"><b>Definition:</b><ahref="memblockheap_8h_source.html#l00027">memblockheap.h:27</a></div></div>
<divclass="ttc"id="group__coreinit__memblockheap_html_aa95b31244ef58f22a5f337c625bd5da6"><divclass="ttname"><ahref="group__coreinit__memblockheap.html#aa95b31244ef58f22a5f337c625bd5da6">MEMBlockHeap::defaultTrack</a></div><divclass="ttdeci">MEMBlockHeapTracking defaultTrack</div><divclass="ttdoc">Default tracking heap, tracks only defaultBlock.</div><divclass="ttdef"><b>Definition:</b><ahref="memblockheap_8h_source.html#l00062">memblockheap.h:62</a></div></div>
<divclass="ttc"id="group__coreinit__memblockheap_html_a57dfa4d169c6b9c0b4e7352bc0c34366"><divclass="ttname"><ahref="group__coreinit__memblockheap.html#a57dfa4d169c6b9c0b4e7352bc0c34366">MEMBlockHeapBlock::end</a></div><divclass="ttdeci">void * end</div><divclass="ttdoc">End address of the data region this block has allocated.</div><divclass="ttdef"><b>Definition:</b><ahref="memblockheap_8h_source.html#l00039">memblockheap.h:39</a></div></div>