2019-07-08 17:15:34 -07:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2019-06-22 10:30:09 -07:00
< 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" / >
2021-12-18 16:36:37 -08:00
< meta name = "generator" content = "Doxygen 1.9.1" / >
2019-06-22 10:30:09 -07:00
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
< title > mi-malloc: Typed Macros< / 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 = "navtree.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "resize.js" > < / script >
< script type = "text/javascript" src = "navtreedata.js" > < / script >
< script type = "text/javascript" src = "navtree.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" >
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3& dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function() { init_search(); });
/* @license-end */
< / script >
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" / >
< link href = "mimalloc-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 = "projectlogo" > < img alt = "Logo" src = "mimalloc-logo.svg" / > < / td >
< td id = "projectalign" style = "padding-left: 0.5em;" >
< div id = "projectname" > mi-malloc
2021-12-18 16:36:37 -08:00
  < span id = "projectnumber" > 1.7/2.0< / span >
2019-06-22 10:30:09 -07:00
< / div >
< / td >
< td > < div id = "MSearchBox" class = "MSearchBoxInactive" >
< span class = "left" >
2021-12-18 16:36:37 -08:00
< img id = "MSearchSelect" src = "search/mag_sel.svg"
2019-06-22 10:30:09 -07:00
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
< input type = "text" id = "MSearchField" value = "Search" accesskey = "S"
2022-12-03 00:23:43 +01:00
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
2019-06-22 10:30:09 -07:00
onkeyup="searchBox.OnSearchFieldChange(event)"/>
< / span > < span class = "right" >
2021-12-18 16:36:37 -08:00
< a id = "MSearchClose" href = "javascript:searchBox.CloseResultsWindow()" > < img id = "MSearchCloseImg" border = "0" src = "search/close.svg" alt = "" / > < / a >
2019-06-22 10:30:09 -07:00
< / span >
< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
2021-12-18 16:36:37 -08:00
<!-- Generated by Doxygen 1.9.1 -->
2019-06-22 10:30:09 -07:00
< script type = "text/javascript" >
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3& dn=gpl-2.0.txt GPL-v2 */
2021-12-18 16:36:37 -08:00
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
2019-06-22 10:30:09 -07:00
/* @license-end */
< / script >
< / div > <!-- top -->
< div id = "side-nav" class = "ui-resizable side-nav-resizable" >
< div id = "nav-tree" >
< div id = "nav-tree-contents" >
< div id = "nav-sync" class = "sync" > < / div >
< / div >
< / div >
2022-12-03 00:23:43 +01:00
< div id = "splitbar" style = "-moz-user-select:none;"
2019-06-22 10:30:09 -07:00
class="ui-resizable-handle">
< / div >
< / div >
< script type = "text/javascript" >
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3& dn=gpl-2.0.txt GPL-v2 */
2021-12-18 16:36:37 -08:00
$(document).ready(function(){initNavTree('group__typed.html',''); initResizable(); });
2019-06-22 10:30:09 -07:00
/* @license-end */
< / script >
< div id = "doc-content" >
<!-- 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" >
2022-12-03 00:23:43 +01:00
< iframe src = "javascript:void(0)" frameborder = "0"
2019-06-22 10:30:09 -07:00
name="MSearchResults" id="MSearchResults">
< / iframe >
< / div >
< div class = "header" >
< div class = "summary" >
< a href = "#define-members" > Macros< / a > < / div >
< div class = "headertitle" >
< div class = "title" > Typed Macros< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
2022-12-03 00:23:43 +01:00
< p > Typed allocation macros.
2019-06-22 10:30:09 -07:00
< a href = "#details" > More...< / a > < / p >
< table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "define-members" > < / a >
Macros< / h2 > < / td > < / tr >
< tr class = "memitem:ga0619a62c5fd886f1016030abe91f0557" > < td class = "memItemLeft" align = "right" valign = "top" > #define  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__typed.html#ga0619a62c5fd886f1016030abe91f0557" > mi_malloc_tp< / a > (tp)< / td > < / tr >
2021-12-18 16:36:37 -08:00
< tr class = "memdesc:ga0619a62c5fd886f1016030abe91f0557" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Allocate a block of type < em > tp< / em > . < a href = "group__typed.html#ga0619a62c5fd886f1016030abe91f0557" > More...< / a > < br / > < / td > < / tr >
2019-06-22 10:30:09 -07:00
< tr class = "separator:ga0619a62c5fd886f1016030abe91f0557" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:gac77a61bdaf680a803785fe307820b48c" > < td class = "memItemLeft" align = "right" valign = "top" > #define  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__typed.html#gac77a61bdaf680a803785fe307820b48c" > mi_zalloc_tp< / a > (tp)< / td > < / tr >
2021-12-18 16:36:37 -08:00
< tr class = "memdesc:gac77a61bdaf680a803785fe307820b48c" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Allocate a zero-initialized block of type < em > tp< / em > . < a href = "group__typed.html#gac77a61bdaf680a803785fe307820b48c" > More...< / a > < br / > < / td > < / tr >
2019-06-22 10:30:09 -07:00
< tr class = "separator:gac77a61bdaf680a803785fe307820b48c" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:gae80c47c9d4cab10961fff1a8ac98fc07" > < td class = "memItemLeft" align = "right" valign = "top" > #define  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__typed.html#gae80c47c9d4cab10961fff1a8ac98fc07" > mi_calloc_tp< / a > (tp, count)< / td > < / tr >
2021-12-18 16:36:37 -08:00
< tr class = "memdesc:gae80c47c9d4cab10961fff1a8ac98fc07" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Allocate < em > count< / em > zero-initialized blocks of type < em > tp< / em > . < a href = "group__typed.html#gae80c47c9d4cab10961fff1a8ac98fc07" > More...< / a > < br / > < / td > < / tr >
2019-06-22 10:30:09 -07:00
< tr class = "separator:gae80c47c9d4cab10961fff1a8ac98fc07" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:gae5cb6e0fafc9f23169c5622e077afe8b" > < td class = "memItemLeft" align = "right" valign = "top" > #define  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__typed.html#gae5cb6e0fafc9f23169c5622e077afe8b" > mi_mallocn_tp< / a > (tp, count)< / td > < / tr >
2021-12-18 16:36:37 -08:00
< tr class = "memdesc:gae5cb6e0fafc9f23169c5622e077afe8b" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Allocate < em > count< / em > blocks of type < em > tp< / em > . < a href = "group__typed.html#gae5cb6e0fafc9f23169c5622e077afe8b" > More...< / a > < br / > < / td > < / tr >
2019-06-22 10:30:09 -07:00
< tr class = "separator:gae5cb6e0fafc9f23169c5622e077afe8b" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ga1158b49a55dfa81f58a4426a7578f523" > < td class = "memItemLeft" align = "right" valign = "top" > #define  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__typed.html#ga1158b49a55dfa81f58a4426a7578f523" > mi_reallocn_tp< / a > (p, tp, count)< / td > < / tr >
2021-12-18 16:36:37 -08:00
< tr class = "memdesc:ga1158b49a55dfa81f58a4426a7578f523" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Re-allocate to < em > count< / em > blocks of type < em > tp< / em > . < a href = "group__typed.html#ga1158b49a55dfa81f58a4426a7578f523" > More...< / a > < br / > < / td > < / tr >
2019-06-22 10:30:09 -07:00
< tr class = "separator:ga1158b49a55dfa81f58a4426a7578f523" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ga653bcb24ac495bc19940ecd6898f9cd7" > < td class = "memItemLeft" align = "right" valign = "top" > #define  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__typed.html#ga653bcb24ac495bc19940ecd6898f9cd7" > mi_heap_malloc_tp< / a > (hp, tp)< / td > < / tr >
2021-12-18 16:36:37 -08:00
< tr class = "memdesc:ga653bcb24ac495bc19940ecd6898f9cd7" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Allocate a block of type < em > tp< / em > in a heap < em > hp< / em > . < a href = "group__typed.html#ga653bcb24ac495bc19940ecd6898f9cd7" > More...< / a > < br / > < / td > < / tr >
2019-06-22 10:30:09 -07:00
< tr class = "separator:ga653bcb24ac495bc19940ecd6898f9cd7" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:gad6e87e86e994aa14416ae9b5d4c188fe" > < td class = "memItemLeft" align = "right" valign = "top" > #define  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__typed.html#gad6e87e86e994aa14416ae9b5d4c188fe" > mi_heap_zalloc_tp< / a > (hp, tp)< / td > < / tr >
2021-12-18 16:36:37 -08:00
< tr class = "memdesc:gad6e87e86e994aa14416ae9b5d4c188fe" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Allocate a zero-initialized block of type < em > tp< / em > in a heap < em > hp< / em > . < a href = "group__typed.html#gad6e87e86e994aa14416ae9b5d4c188fe" > More...< / a > < br / > < / td > < / tr >
2019-06-22 10:30:09 -07:00
< tr class = "separator:gad6e87e86e994aa14416ae9b5d4c188fe" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ga4e5d1f1707c90e5f55e023ac5f45fe74" > < td class = "memItemLeft" align = "right" valign = "top" > #define  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__typed.html#ga4e5d1f1707c90e5f55e023ac5f45fe74" > mi_heap_calloc_tp< / a > (hp, tp, count)< / td > < / tr >
2021-12-18 16:36:37 -08:00
< tr class = "memdesc:ga4e5d1f1707c90e5f55e023ac5f45fe74" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Allocate < em > count< / em > zero-initialized blocks of type < em > tp< / em > in a heap < em > hp< / em > . < a href = "group__typed.html#ga4e5d1f1707c90e5f55e023ac5f45fe74" > More...< / a > < br / > < / td > < / tr >
2019-06-22 10:30:09 -07:00
< tr class = "separator:ga4e5d1f1707c90e5f55e023ac5f45fe74" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ga6b75cb9c4b9c647661d0924552dc6e83" > < td class = "memItemLeft" align = "right" valign = "top" > #define  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__typed.html#ga6b75cb9c4b9c647661d0924552dc6e83" > mi_heap_mallocn_tp< / a > (hp, tp, count)< / td > < / tr >
2021-12-18 16:36:37 -08:00
< tr class = "memdesc:ga6b75cb9c4b9c647661d0924552dc6e83" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Allocate < em > count< / em > blocks of type < em > tp< / em > in a heap < em > hp< / em > . < a href = "group__typed.html#ga6b75cb9c4b9c647661d0924552dc6e83" > More...< / a > < br / > < / td > < / tr >
2019-06-22 10:30:09 -07:00
< tr class = "separator:ga6b75cb9c4b9c647661d0924552dc6e83" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-07-08 17:15:34 -07:00
< tr class = "memitem:gaf213d5422ec35e7f6caad827c79bc948" > < td class = "memItemLeft" align = "right" valign = "top" > #define  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__typed.html#gaf213d5422ec35e7f6caad827c79bc948" > mi_heap_reallocn_tp< / a > (hp, p, tp, count)< / td > < / tr >
2021-12-18 16:36:37 -08:00
< tr class = "memdesc:gaf213d5422ec35e7f6caad827c79bc948" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Re-allocate to < em > count< / em > blocks of type < em > tp< / em > in a heap < em > hp< / em > . < a href = "group__typed.html#gaf213d5422ec35e7f6caad827c79bc948" > More...< / a > < br / > < / td > < / tr >
2019-07-08 17:15:34 -07:00
< tr class = "separator:gaf213d5422ec35e7f6caad827c79bc948" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-09-11 20:48:41 -07:00
< tr class = "memitem:ga3e50a1600958fcaf1a7f3560c9174f9e" > < td class = "memItemLeft" align = "right" valign = "top" > #define  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__typed.html#ga3e50a1600958fcaf1a7f3560c9174f9e" > mi_heap_recalloc_tp< / a > (hp, p, tp, count)< / td > < / tr >
2021-12-18 16:36:37 -08:00
< tr class = "memdesc:ga3e50a1600958fcaf1a7f3560c9174f9e" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Re-allocate to < em > count< / em > zero initialized blocks of type < em > tp< / em > in a heap < em > hp< / em > . < a href = "group__typed.html#ga3e50a1600958fcaf1a7f3560c9174f9e" > More...< / a > < br / > < / td > < / tr >
2019-09-11 20:48:41 -07:00
< tr class = "separator:ga3e50a1600958fcaf1a7f3560c9174f9e" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-06-22 10:30:09 -07:00
< / table >
< a name = "details" id = "details" > < / a > < h2 class = "groupheader" > Detailed Description< / h2 >
< p > Typed allocation macros. < / p >
2021-12-18 16:36:37 -08:00
< p > For example: < / p > < div class = "fragment" > < div class = "line" > < span class = "keywordtype" > int< / span > * p = < a class = "code" href = "group__typed.html#ga0619a62c5fd886f1016030abe91f0557" > mi_malloc_tp< / a > (< span class = "keywordtype" > int< / span > )< / div >
< div class = "ttc" id = "agroup__typed_html_ga0619a62c5fd886f1016030abe91f0557" > < div class = "ttname" > < a href = "group__typed.html#ga0619a62c5fd886f1016030abe91f0557" > mi_malloc_tp< / a > < / div > < div class = "ttdeci" > #define mi_malloc_tp(tp)< / div > < div class = "ttdoc" > Allocate a block of type tp.< / div > < div class = "ttdef" > < b > Definition:< / b > mimalloc-doc.h:692< / div > < / div >
< / div > <!-- fragment --> < h2 class = "groupheader" > Macro Definition Documentation< / h2 >
2019-06-22 10:30:09 -07:00
< a id = "gae80c47c9d4cab10961fff1a8ac98fc07" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#gae80c47c9d4cab10961fff1a8ac98fc07" > ◆ < / a > < / span > mi_calloc_tp< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > #define mi_calloc_tp< / td >
< td > (< / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > tp, < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > count  < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Allocate < em > count< / em > zero-initialized blocks of type < em > tp< / em > . < / p >
< / div >
< / div >
< a id = "ga4e5d1f1707c90e5f55e023ac5f45fe74" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga4e5d1f1707c90e5f55e023ac5f45fe74" > ◆ < / a > < / span > mi_heap_calloc_tp< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > #define mi_heap_calloc_tp< / td >
< td > (< / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > hp, < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > tp, < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > count  < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Allocate < em > count< / em > zero-initialized blocks of type < em > tp< / em > in a heap < em > hp< / em > . < / p >
< / div >
< / div >
< a id = "ga653bcb24ac495bc19940ecd6898f9cd7" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga653bcb24ac495bc19940ecd6898f9cd7" > ◆ < / a > < / span > mi_heap_malloc_tp< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > #define mi_heap_malloc_tp< / td >
< td > (< / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > hp, < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > tp  < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Allocate a block of type < em > tp< / em > in a heap < em > hp< / em > . < / p >
< / div >
< / div >
< a id = "ga6b75cb9c4b9c647661d0924552dc6e83" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga6b75cb9c4b9c647661d0924552dc6e83" > ◆ < / a > < / span > mi_heap_mallocn_tp< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > #define mi_heap_mallocn_tp< / td >
< td > (< / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > hp, < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > tp, < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > count  < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Allocate < em > count< / em > blocks of type < em > tp< / em > in a heap < em > hp< / em > . < / p >
2019-07-08 17:15:34 -07:00
< / div >
< / div >
< a id = "gaf213d5422ec35e7f6caad827c79bc948" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#gaf213d5422ec35e7f6caad827c79bc948" > ◆ < / a > < / span > mi_heap_reallocn_tp< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > #define mi_heap_reallocn_tp< / td >
< td > (< / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > hp, < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > p, < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > tp, < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > count  < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Re-allocate to < em > count< / em > blocks of type < em > tp< / em > in a heap < em > hp< / em > . < / p >
2019-09-11 20:48:41 -07:00
< / div >
< / div >
< a id = "ga3e50a1600958fcaf1a7f3560c9174f9e" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga3e50a1600958fcaf1a7f3560c9174f9e" > ◆ < / a > < / span > mi_heap_recalloc_tp< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > #define mi_heap_recalloc_tp< / td >
< td > (< / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > hp, < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > p, < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > tp, < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > count  < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Re-allocate to < em > count< / em > zero initialized blocks of type < em > tp< / em > in a heap < em > hp< / em > . < / p >
2019-06-22 10:30:09 -07:00
< / div >
< / div >
< a id = "gad6e87e86e994aa14416ae9b5d4c188fe" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#gad6e87e86e994aa14416ae9b5d4c188fe" > ◆ < / a > < / span > mi_heap_zalloc_tp< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > #define mi_heap_zalloc_tp< / td >
< td > (< / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > hp, < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > tp  < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Allocate a zero-initialized block of type < em > tp< / em > in a heap < em > hp< / em > . < / p >
< / div >
< / div >
< a id = "ga0619a62c5fd886f1016030abe91f0557" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga0619a62c5fd886f1016030abe91f0557" > ◆ < / a > < / span > mi_malloc_tp< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > #define mi_malloc_tp< / td >
< td > (< / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > tp< / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Allocate a block of type < em > tp< / em > . < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > tp< / td > < td > The type of the block to allocate. < / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > Returns< / dt > < dd > A pointer to an object of type < em > tp< / em > , or < em > NULL< / em > if out of memory.< / dd > < / dl >
2021-12-18 16:36:37 -08:00
< p > < b > Example:< / b > < / p > < div class = "fragment" > < div class = "line" > < span class = "keywordtype" > int< / span > * p = < a class = "code" href = "group__typed.html#ga0619a62c5fd886f1016030abe91f0557" > mi_malloc_tp< / a > (< span class = "keywordtype" > int< / span > )< / div >
< / div > <!-- fragment --> < dl class = "section see" > < dt > See also< / dt > < dd > < a class = "el" href = "group__malloc.html#ga3406e8b168bc74c8637b11571a6da83a" title = "Allocate size bytes." > mi_malloc()< / a > < / dd > < / dl >
2019-06-22 10:30:09 -07:00
< / div >
< / div >
< a id = "gae5cb6e0fafc9f23169c5622e077afe8b" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#gae5cb6e0fafc9f23169c5622e077afe8b" > ◆ < / a > < / span > mi_mallocn_tp< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > #define mi_mallocn_tp< / td >
< td > (< / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > tp, < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > count  < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Allocate < em > count< / em > blocks of type < em > tp< / em > . < / p >
< / div >
< / div >
< a id = "ga1158b49a55dfa81f58a4426a7578f523" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga1158b49a55dfa81f58a4426a7578f523" > ◆ < / a > < / span > mi_reallocn_tp< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > #define mi_reallocn_tp< / td >
< td > (< / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > p, < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > tp, < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > count  < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Re-allocate to < em > count< / em > blocks of type < em > tp< / em > . < / p >
< / div >
< / div >
< a id = "gac77a61bdaf680a803785fe307820b48c" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#gac77a61bdaf680a803785fe307820b48c" > ◆ < / a > < / span > mi_zalloc_tp< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > #define mi_zalloc_tp< / td >
< td > (< / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > tp< / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Allocate a zero-initialized block of type < em > tp< / em > . < / p >
< / div >
< / div >
< / div > <!-- contents -->
< / div > <!-- doc - content -->
<!-- start footer part -->
< div id = "nav-path" class = "navpath" > <!-- id is needed for treeview function! -->
< ul >
2021-12-18 16:36:37 -08:00
< li class = "footer" > Generated by < a href = "https://www.doxygen.org/index.html" > < img class = "footer" src = "doxygen.svg" width = "104" height = "31" alt = "doxygen" / > < / a > 1.9.1 < / li >
2019-06-22 10:30:09 -07:00
< / ul >
< / div >
< / body >
< / html >