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">
2024-06-04 14:37:16 -07:00
< html xmlns = "http://www.w3.org/1999/xhtml" lang = "en-US" >
2019-06-22 10:30:09 -07:00
< head >
< meta http-equiv = "Content-Type" content = "text/xhtml;charset=UTF-8" />
2024-06-04 14:37:16 -07:00
< meta http-equiv = "X-UA-Compatible" content = "IE=11" />
2025-01-03 17:56:15 -08:00
< meta name = "generator" content = "Doxygen 1.13.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 >
2024-06-04 14:37:16 -07:00
< script type = "text/javascript" src = "clipboard.js" ></ script >
2019-06-22 10:30:09 -07:00
< link href = "navtree.css" rel = "stylesheet" type = "text/css" />
< script type = "text/javascript" src = "navtreedata.js" ></ script >
< script type = "text/javascript" src = "navtree.js" ></ script >
2024-06-04 14:37:16 -07:00
< script type = "text/javascript" src = "resize.js" ></ script >
< script type = "text/javascript" src = "cookie.js" ></ script >
2019-06-22 10:30:09 -07:00
< 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" >
2024-06-04 14:37:16 -07:00
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
$ ( function () { init_search (); });
2019-06-22 10:30:09 -07:00
/* @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 >
2024-06-04 14:37:16 -07:00
< tr id = "projectrow" >
2019-06-22 10:30:09 -07:00
< td id = "projectlogo" >< img alt = "Logo" src = "mimalloc-logo.svg" /></ td >
2024-06-04 14:37:16 -07:00
< td id = "projectalign" >
< div id = "projectname" > mi-malloc< span id = "projectnumber" >   1.8/2.1</ span >
2019-06-22 10:30:09 -07:00
</ div >
</ td >
2024-06-04 14:37:16 -07:00
< td > < div id = "MSearchBox" class = "MSearchBoxInactive" >
2019-06-22 10:30:09 -07:00
< span class = "left" >
2024-06-04 14:37:16 -07:00
< span id = "MSearchSelect" onmouseover = "return searchBox.OnSearchSelectShow()" onmouseout = "return searchBox.OnSearchSelectHide()" >   </ span >
< input type = "text" id = "MSearchField" value = "" placeholder = "Search" accesskey = "S"
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 -->
2025-01-03 17:56:15 -08:00
<!-- Generated by Doxygen 1.13.1 -->
2019-06-22 10:30:09 -07:00
< script type = "text/javascript" >
2024-06-04 14:37:16 -07:00
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
var searchBox = new SearchBox ( "searchBox" , "search/" , '.html' );
/* @license-end */
</ script >
< script type = "text/javascript" >
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
$ ( function () { codefold . init ( 0 ); });
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 >
2024-06-04 14:37:16 -07: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" >
2024-06-04 14:37:16 -07:00
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
$ ( function (){ initNavTree ( 'group__typed.html' , '' ); initResizable ( true ); });
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" >
2024-06-04 14:37:16 -07:00
< 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 >
2019-06-22 10:30:09 -07:00
</ div >
< div class = "header" >
< div class = "summary" >
< a href = "#define-members" > Macros</ a > </ div >
2024-06-04 14:37:16 -07:00
< div class = "headertitle" >< div class = "title" > Typed Macros</ div ></ div >
2019-06-22 10:30:09 -07:00
</ div > <!--header-->
< div class = "contents" >
2025-01-03 17:56:15 -08:00
< p > Typed allocation macros.
< a href = "#details" > More...</ a ></ p >
2019-06-22 10:30:09 -07:00
< table class = "memberdecls" >
2024-06-04 14:37:16 -07:00
< tr class = "heading" >< td colspan = "2" >< h2 class = "groupheader" >< a id = "define-members" name = "define-members" ></ a >
2019-06-22 10:30:09 -07:00
Macros</ h2 ></ td ></ tr >
2024-06-04 14:37:16 -07:00
< tr class = "memitem:ga0619a62c5fd886f1016030abe91f0557" id = "r_ga0619a62c5fd886f1016030abe91f0557" >< td class = "memItemLeft" align = "right" valign = "top" > #define  </ td >< td class = "memItemRight" valign = "bottom" >< a class = "el" href = "#ga0619a62c5fd886f1016030abe91f0557" > mi_malloc_tp</ a > (tp)</ td ></ tr >
2025-01-03 17:56:15 -08:00
< tr class = "memdesc:ga0619a62c5fd886f1016030abe91f0557" >< td class = "mdescLeft" >   </ td >< td class = "mdescRight" > Allocate a block of type < em class = "arg" > tp</ em > . < br /></ td ></ tr >
2019-06-22 10:30:09 -07:00
< tr class = "separator:ga0619a62c5fd886f1016030abe91f0557" >< td class = "memSeparator" colspan = "2" >   </ td ></ tr >
2024-06-04 14:37:16 -07:00
< tr class = "memitem:gac77a61bdaf680a803785fe307820b48c" id = "r_gac77a61bdaf680a803785fe307820b48c" >< td class = "memItemLeft" align = "right" valign = "top" > #define  </ td >< td class = "memItemRight" valign = "bottom" >< a class = "el" href = "#gac77a61bdaf680a803785fe307820b48c" > mi_zalloc_tp</ a > (tp)</ td ></ tr >
2025-01-03 17:56:15 -08:00
< tr class = "memdesc:gac77a61bdaf680a803785fe307820b48c" >< td class = "mdescLeft" >   </ td >< td class = "mdescRight" > Allocate a zero-initialized block of type < em class = "arg" > tp</ em > . < br /></ td ></ tr >
2019-06-22 10:30:09 -07:00
< tr class = "separator:gac77a61bdaf680a803785fe307820b48c" >< td class = "memSeparator" colspan = "2" >   </ td ></ tr >
2024-06-04 14:37:16 -07:00
< tr class = "memitem:gae80c47c9d4cab10961fff1a8ac98fc07" id = "r_gae80c47c9d4cab10961fff1a8ac98fc07" >< td class = "memItemLeft" align = "right" valign = "top" > #define  </ td >< td class = "memItemRight" valign = "bottom" >< a class = "el" href = "#gae80c47c9d4cab10961fff1a8ac98fc07" > mi_calloc_tp</ a > (tp, count)</ td ></ tr >
2025-01-03 17:56:15 -08:00
< tr class = "memdesc:gae80c47c9d4cab10961fff1a8ac98fc07" >< td class = "mdescLeft" >   </ td >< td class = "mdescRight" > Allocate < em class = "arg" > count</ em > zero-initialized blocks of type < em class = "arg" > tp</ em > . < br /></ td ></ tr >
2019-06-22 10:30:09 -07:00
< tr class = "separator:gae80c47c9d4cab10961fff1a8ac98fc07" >< td class = "memSeparator" colspan = "2" >   </ td ></ tr >
2024-06-04 14:37:16 -07:00
< tr class = "memitem:gae5cb6e0fafc9f23169c5622e077afe8b" id = "r_gae5cb6e0fafc9f23169c5622e077afe8b" >< td class = "memItemLeft" align = "right" valign = "top" > #define  </ td >< td class = "memItemRight" valign = "bottom" >< a class = "el" href = "#gae5cb6e0fafc9f23169c5622e077afe8b" > mi_mallocn_tp</ a > (tp, count)</ td ></ tr >
2025-01-03 17:56:15 -08:00
< tr class = "memdesc:gae5cb6e0fafc9f23169c5622e077afe8b" >< td class = "mdescLeft" >   </ td >< td class = "mdescRight" > Allocate < em class = "arg" > count</ em > blocks of type < em class = "arg" > tp</ em > . < br /></ td ></ tr >
2019-06-22 10:30:09 -07:00
< tr class = "separator:gae5cb6e0fafc9f23169c5622e077afe8b" >< td class = "memSeparator" colspan = "2" >   </ td ></ tr >
2024-06-04 14:37:16 -07:00
< tr class = "memitem:ga1158b49a55dfa81f58a4426a7578f523" id = "r_ga1158b49a55dfa81f58a4426a7578f523" >< td class = "memItemLeft" align = "right" valign = "top" > #define  </ td >< td class = "memItemRight" valign = "bottom" >< a class = "el" href = "#ga1158b49a55dfa81f58a4426a7578f523" > mi_reallocn_tp</ a > (p, tp, count)</ td ></ tr >
2025-01-03 17:56:15 -08:00
< tr class = "memdesc:ga1158b49a55dfa81f58a4426a7578f523" >< td class = "mdescLeft" >   </ td >< td class = "mdescRight" > Re-allocate to < em class = "arg" > count</ em > blocks of type < em class = "arg" > tp</ em > . < br /></ td ></ tr >
2019-06-22 10:30:09 -07:00
< tr class = "separator:ga1158b49a55dfa81f58a4426a7578f523" >< td class = "memSeparator" colspan = "2" >   </ td ></ tr >
2024-06-04 14:37:16 -07:00
< tr class = "memitem:ga653bcb24ac495bc19940ecd6898f9cd7" id = "r_ga653bcb24ac495bc19940ecd6898f9cd7" >< td class = "memItemLeft" align = "right" valign = "top" > #define  </ td >< td class = "memItemRight" valign = "bottom" >< a class = "el" href = "#ga653bcb24ac495bc19940ecd6898f9cd7" > mi_heap_malloc_tp</ a > (hp, tp)</ td ></ tr >
2025-01-03 17:56:15 -08:00
< tr class = "memdesc:ga653bcb24ac495bc19940ecd6898f9cd7" >< td class = "mdescLeft" >   </ td >< td class = "mdescRight" > Allocate a block of type < em class = "arg" > tp</ em > in a heap < em class = "arg" > hp</ em > . < br /></ td ></ tr >
2019-06-22 10:30:09 -07:00
< tr class = "separator:ga653bcb24ac495bc19940ecd6898f9cd7" >< td class = "memSeparator" colspan = "2" >   </ td ></ tr >
2024-06-04 14:37:16 -07:00
< tr class = "memitem:gad6e87e86e994aa14416ae9b5d4c188fe" id = "r_gad6e87e86e994aa14416ae9b5d4c188fe" >< td class = "memItemLeft" align = "right" valign = "top" > #define  </ td >< td class = "memItemRight" valign = "bottom" >< a class = "el" href = "#gad6e87e86e994aa14416ae9b5d4c188fe" > mi_heap_zalloc_tp</ a > (hp, tp)</ td ></ tr >
2025-01-03 17:56:15 -08:00
< tr class = "memdesc:gad6e87e86e994aa14416ae9b5d4c188fe" >< td class = "mdescLeft" >   </ td >< td class = "mdescRight" > Allocate a zero-initialized block of type < em class = "arg" > tp</ em > in a heap < em class = "arg" > hp</ em > . < br /></ td ></ tr >
2019-06-22 10:30:09 -07:00
< tr class = "separator:gad6e87e86e994aa14416ae9b5d4c188fe" >< td class = "memSeparator" colspan = "2" >   </ td ></ tr >
2024-06-04 14:37:16 -07:00
< tr class = "memitem:ga4e5d1f1707c90e5f55e023ac5f45fe74" id = "r_ga4e5d1f1707c90e5f55e023ac5f45fe74" >< td class = "memItemLeft" align = "right" valign = "top" > #define  </ td >< td class = "memItemRight" valign = "bottom" >< a class = "el" href = "#ga4e5d1f1707c90e5f55e023ac5f45fe74" > mi_heap_calloc_tp</ a > (hp, tp, count)</ td ></ tr >
2025-01-03 17:56:15 -08:00
< tr class = "memdesc:ga4e5d1f1707c90e5f55e023ac5f45fe74" >< td class = "mdescLeft" >   </ td >< td class = "mdescRight" > Allocate < em class = "arg" > count</ em > zero-initialized blocks of type < em class = "arg" > tp</ em > in a heap < em class = "arg" > hp</ em > . < br /></ td ></ tr >
2019-06-22 10:30:09 -07:00
< tr class = "separator:ga4e5d1f1707c90e5f55e023ac5f45fe74" >< td class = "memSeparator" colspan = "2" >   </ td ></ tr >
2024-06-04 14:37:16 -07:00
< tr class = "memitem:ga6b75cb9c4b9c647661d0924552dc6e83" id = "r_ga6b75cb9c4b9c647661d0924552dc6e83" >< td class = "memItemLeft" align = "right" valign = "top" > #define  </ td >< td class = "memItemRight" valign = "bottom" >< a class = "el" href = "#ga6b75cb9c4b9c647661d0924552dc6e83" > mi_heap_mallocn_tp</ a > (hp, tp, count)</ td ></ tr >
2025-01-03 17:56:15 -08:00
< tr class = "memdesc:ga6b75cb9c4b9c647661d0924552dc6e83" >< td class = "mdescLeft" >   </ td >< td class = "mdescRight" > Allocate < em class = "arg" > count</ em > blocks of type < em class = "arg" > tp</ em > in a heap < em class = "arg" > hp</ em > . < br /></ td ></ tr >
2019-06-22 10:30:09 -07:00
< tr class = "separator:ga6b75cb9c4b9c647661d0924552dc6e83" >< td class = "memSeparator" colspan = "2" >   </ td ></ tr >
2024-06-04 14:37:16 -07:00
< tr class = "memitem:gaf213d5422ec35e7f6caad827c79bc948" id = "r_gaf213d5422ec35e7f6caad827c79bc948" >< td class = "memItemLeft" align = "right" valign = "top" > #define  </ td >< td class = "memItemRight" valign = "bottom" >< a class = "el" href = "#gaf213d5422ec35e7f6caad827c79bc948" > mi_heap_reallocn_tp</ a > (hp, p, tp, count)</ td ></ tr >
2025-01-03 17:56:15 -08:00
< tr class = "memdesc:gaf213d5422ec35e7f6caad827c79bc948" >< td class = "mdescLeft" >   </ td >< td class = "mdescRight" > Re-allocate to < em class = "arg" > count</ em > blocks of type < em class = "arg" > tp</ em > in a heap < em class = "arg" > hp</ em > . < br /></ td ></ tr >
2019-07-08 17:15:34 -07:00
< tr class = "separator:gaf213d5422ec35e7f6caad827c79bc948" >< td class = "memSeparator" colspan = "2" >   </ td ></ tr >
2024-06-04 14:37:16 -07:00
< tr class = "memitem:ga3e50a1600958fcaf1a7f3560c9174f9e" id = "r_ga3e50a1600958fcaf1a7f3560c9174f9e" >< td class = "memItemLeft" align = "right" valign = "top" > #define  </ td >< td class = "memItemRight" valign = "bottom" >< a class = "el" href = "#ga3e50a1600958fcaf1a7f3560c9174f9e" > mi_heap_recalloc_tp</ a > (hp, p, tp, count)</ td ></ tr >
2025-01-03 17:56:15 -08:00
< tr class = "memdesc:ga3e50a1600958fcaf1a7f3560c9174f9e" >< td class = "mdescLeft" >   </ td >< td class = "mdescRight" > Re-allocate to < em class = "arg" > count</ em > zero initialized blocks of type < em class = "arg" > tp</ em > in a heap < em class = "arg" > hp</ em > . < 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 >
2025-01-03 17:56:15 -08:00
< p > Typed allocation macros. </ p >
< p > For example: </ p >< div class = "fragment" >< div class = "line" >< span class = "keywordtype" > int</ span > * p = < a class = "code hl_define" href = "#ga0619a62c5fd886f1016030abe91f0557" > mi_malloc_tp</ a > (< span class = "keywordtype" > int</ span > )</ div >
2024-06-04 17:04:33 -07:00
< div class = "ttc" id = "agroup__typed_html_ga0619a62c5fd886f1016030abe91f0557" >< div class = "ttname" >< a href = "#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:784</ div ></ div >
2021-12-18 16:36:37 -08:00
</ div > <!-- fragment --> < h2 class = "groupheader" > Macro Definition Documentation</ h2 >
2024-06-04 14:37:16 -07:00
< a id = "gae80c47c9d4cab10961fff1a8ac98fc07" name = "gae80c47c9d4cab10961fff1a8ac98fc07" ></ a >
< h2 class = "memtitle" >< span class = "permalink" >< a href = "#gae80c47c9d4cab10961fff1a8ac98fc07" > ◆  </ a ></ span > mi_calloc_tp</ h2 >
2019-06-22 10:30:09 -07:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > #define mi_calloc_tp</ td >
< td > (</ td >
2024-06-04 14:37:16 -07:00
< td class = "paramtype" ></ td > < td class = "paramname" >< span class = "paramname" >< em > tp</ em ></ span > , </ td >
2019-06-22 10:30:09 -07:00
</ tr >
< tr >
< td class = "paramkey" ></ td >
< td ></ td >
2024-06-04 14:37:16 -07:00
< td class = "paramtype" ></ td > < td class = "paramname" >< span class = "paramname" >< em > count</ em ></ span >   )</ td >
2019-06-22 10:30:09 -07:00
</ tr >
</ table >
</ div >< div class = "memdoc" >
2025-01-03 17:56:15 -08:00
< p > Allocate < em class = "arg" > count</ em > zero-initialized blocks of type < em class = "arg" > tp</ em > . </ p >
2019-06-22 10:30:09 -07:00
</ div >
</ div >
2024-06-04 14:37:16 -07:00
< a id = "ga4e5d1f1707c90e5f55e023ac5f45fe74" name = "ga4e5d1f1707c90e5f55e023ac5f45fe74" ></ a >
< h2 class = "memtitle" >< span class = "permalink" >< a href = "#ga4e5d1f1707c90e5f55e023ac5f45fe74" > ◆  </ a ></ span > mi_heap_calloc_tp</ h2 >
2019-06-22 10:30:09 -07:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > #define mi_heap_calloc_tp</ td >
< td > (</ td >
2024-06-04 14:37:16 -07:00
< td class = "paramtype" ></ td > < td class = "paramname" >< span class = "paramname" >< em > hp</ em ></ span > , </ td >
2019-06-22 10:30:09 -07:00
</ tr >
< tr >
< td class = "paramkey" ></ td >
< td ></ td >
2024-06-04 14:37:16 -07:00
< td class = "paramtype" ></ td > < td class = "paramname" >< span class = "paramname" >< em > tp</ em ></ span > , </ td >
2019-06-22 10:30:09 -07:00
</ tr >
< tr >
< td class = "paramkey" ></ td >
< td ></ td >
2024-06-04 14:37:16 -07:00
< td class = "paramtype" ></ td > < td class = "paramname" >< span class = "paramname" >< em > count</ em ></ span >   )</ td >
2019-06-22 10:30:09 -07:00
</ tr >
</ table >
</ div >< div class = "memdoc" >
2025-01-03 17:56:15 -08:00
< p > Allocate < em class = "arg" > count</ em > zero-initialized blocks of type < em class = "arg" > tp</ em > in a heap < em class = "arg" > hp</ em > . </ p >
2019-06-22 10:30:09 -07:00
</ div >
</ div >
2024-06-04 14:37:16 -07:00
< a id = "ga653bcb24ac495bc19940ecd6898f9cd7" name = "ga653bcb24ac495bc19940ecd6898f9cd7" ></ a >
< h2 class = "memtitle" >< span class = "permalink" >< a href = "#ga653bcb24ac495bc19940ecd6898f9cd7" > ◆  </ a ></ span > mi_heap_malloc_tp</ h2 >
2019-06-22 10:30:09 -07:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > #define mi_heap_malloc_tp</ td >
< td > (</ td >
2024-06-04 14:37:16 -07:00
< td class = "paramtype" ></ td > < td class = "paramname" >< span class = "paramname" >< em > hp</ em ></ span > , </ td >
2019-06-22 10:30:09 -07:00
</ tr >
< tr >
< td class = "paramkey" ></ td >
< td ></ td >
2024-06-04 14:37:16 -07:00
< td class = "paramtype" ></ td > < td class = "paramname" >< span class = "paramname" >< em > tp</ em ></ span >   )</ td >
2019-06-22 10:30:09 -07:00
</ tr >
</ table >
</ div >< div class = "memdoc" >
2025-01-03 17:56:15 -08:00
< p > Allocate a block of type < em class = "arg" > tp</ em > in a heap < em class = "arg" > hp</ em > . </ p >
2019-06-22 10:30:09 -07:00
</ div >
</ div >
2024-06-04 14:37:16 -07:00
< a id = "ga6b75cb9c4b9c647661d0924552dc6e83" name = "ga6b75cb9c4b9c647661d0924552dc6e83" ></ a >
< h2 class = "memtitle" >< span class = "permalink" >< a href = "#ga6b75cb9c4b9c647661d0924552dc6e83" > ◆  </ a ></ span > mi_heap_mallocn_tp</ h2 >
2019-06-22 10:30:09 -07:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > #define mi_heap_mallocn_tp</ td >
< td > (</ td >
2024-06-04 14:37:16 -07:00
< td class = "paramtype" ></ td > < td class = "paramname" >< span class = "paramname" >< em > hp</ em ></ span > , </ td >
2019-06-22 10:30:09 -07:00
</ tr >
< tr >
< td class = "paramkey" ></ td >
< td ></ td >
2024-06-04 14:37:16 -07:00
< td class = "paramtype" ></ td > < td class = "paramname" >< span class = "paramname" >< em > tp</ em ></ span > , </ td >
2019-06-22 10:30:09 -07:00
</ tr >
< tr >
< td class = "paramkey" ></ td >
< td ></ td >
2024-06-04 14:37:16 -07:00
< td class = "paramtype" ></ td > < td class = "paramname" >< span class = "paramname" >< em > count</ em ></ span >   )</ td >
2019-06-22 10:30:09 -07:00
</ tr >
</ table >
</ div >< div class = "memdoc" >
2025-01-03 17:56:15 -08:00
< p > Allocate < em class = "arg" > count</ em > blocks of type < em class = "arg" > tp</ em > in a heap < em class = "arg" > hp</ em > . </ p >
2019-06-22 10:30:09 -07:00
2019-07-08 17:15:34 -07:00
</ div >
</ div >
2024-06-04 14:37:16 -07:00
< a id = "gaf213d5422ec35e7f6caad827c79bc948" name = "gaf213d5422ec35e7f6caad827c79bc948" ></ a >
< h2 class = "memtitle" >< span class = "permalink" >< a href = "#gaf213d5422ec35e7f6caad827c79bc948" > ◆  </ a ></ span > mi_heap_reallocn_tp</ h2 >
2019-07-08 17:15:34 -07:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > #define mi_heap_reallocn_tp</ td >
< td > (</ td >
2024-06-04 14:37:16 -07:00
< td class = "paramtype" ></ td > < td class = "paramname" >< span class = "paramname" >< em > hp</ em ></ span > , </ td >
2019-07-08 17:15:34 -07:00
</ tr >
< tr >
< td class = "paramkey" ></ td >
< td ></ td >
2024-06-04 14:37:16 -07:00
< td class = "paramtype" ></ td > < td class = "paramname" >< span class = "paramname" >< em > p</ em ></ span > , </ td >
2019-07-08 17:15:34 -07:00
</ tr >
< tr >
< td class = "paramkey" ></ td >
< td ></ td >
2024-06-04 14:37:16 -07:00
< td class = "paramtype" ></ td > < td class = "paramname" >< span class = "paramname" >< em > tp</ em ></ span > , </ td >
2019-07-08 17:15:34 -07:00
</ tr >
< tr >
< td class = "paramkey" ></ td >
< td ></ td >
2024-06-04 14:37:16 -07:00
< td class = "paramtype" ></ td > < td class = "paramname" >< span class = "paramname" >< em > count</ em ></ span >   )</ td >
2019-07-08 17:15:34 -07:00
</ tr >
</ table >
</ div >< div class = "memdoc" >
2025-01-03 17:56:15 -08:00
< p > Re-allocate to < em class = "arg" > count</ em > blocks of type < em class = "arg" > tp</ em > in a heap < em class = "arg" > hp</ em > . </ p >
2019-07-08 17:15:34 -07:00
2019-09-11 20:48:41 -07:00
</ div >
</ div >
2024-06-04 14:37:16 -07:00
< a id = "ga3e50a1600958fcaf1a7f3560c9174f9e" name = "ga3e50a1600958fcaf1a7f3560c9174f9e" ></ a >
< h2 class = "memtitle" >< span class = "permalink" >< a href = "#ga3e50a1600958fcaf1a7f3560c9174f9e" > ◆  </ a ></ span > mi_heap_recalloc_tp</ h2 >
2019-09-11 20:48:41 -07:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > #define mi_heap_recalloc_tp</ td >
< td > (</ td >
2024-06-04 14:37:16 -07:00
< td class = "paramtype" ></ td > < td class = "paramname" >< span class = "paramname" >< em > hp</ em ></ span > , </ td >
2019-09-11 20:48:41 -07:00
</ tr >
< tr >
< td class = "paramkey" ></ td >
< td ></ td >
2024-06-04 14:37:16 -07:00
< td class = "paramtype" ></ td > < td class = "paramname" >< span class = "paramname" >< em > p</ em ></ span > , </ td >
2019-09-11 20:48:41 -07:00
</ tr >
< tr >
< td class = "paramkey" ></ td >
< td ></ td >
2024-06-04 14:37:16 -07:00
< td class = "paramtype" ></ td > < td class = "paramname" >< span class = "paramname" >< em > tp</ em ></ span > , </ td >
2019-09-11 20:48:41 -07:00
</ tr >
< tr >
< td class = "paramkey" ></ td >
< td ></ td >
2024-06-04 14:37:16 -07:00
< td class = "paramtype" ></ td > < td class = "paramname" >< span class = "paramname" >< em > count</ em ></ span >   )</ td >
2019-09-11 20:48:41 -07:00
</ tr >
</ table >
</ div >< div class = "memdoc" >
2025-01-03 17:56:15 -08:00
< p > Re-allocate to < em class = "arg" > count</ em > zero initialized blocks of type < em class = "arg" > tp</ em > in a heap < em class = "arg" > hp</ em > . </ p >
2019-09-11 20:48:41 -07:00
2019-06-22 10:30:09 -07:00
</ div >
</ div >
2024-06-04 14:37:16 -07:00
< a id = "gad6e87e86e994aa14416ae9b5d4c188fe" name = "gad6e87e86e994aa14416ae9b5d4c188fe" ></ a >
< h2 class = "memtitle" >< span class = "permalink" >< a href = "#gad6e87e86e994aa14416ae9b5d4c188fe" > ◆  </ a ></ span > mi_heap_zalloc_tp</ h2 >
2019-06-22 10:30:09 -07:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > #define mi_heap_zalloc_tp</ td >
< td > (</ td >
2024-06-04 14:37:16 -07:00
< td class = "paramtype" ></ td > < td class = "paramname" >< span class = "paramname" >< em > hp</ em ></ span > , </ td >
2019-06-22 10:30:09 -07:00
</ tr >
< tr >
< td class = "paramkey" ></ td >
< td ></ td >
2024-06-04 14:37:16 -07:00
< td class = "paramtype" ></ td > < td class = "paramname" >< span class = "paramname" >< em > tp</ em ></ span >   )</ td >
2019-06-22 10:30:09 -07:00
</ tr >
</ table >
</ div >< div class = "memdoc" >
2025-01-03 17:56:15 -08:00
< p > Allocate a zero-initialized block of type < em class = "arg" > tp</ em > in a heap < em class = "arg" > hp</ em > . </ p >
2019-06-22 10:30:09 -07:00
</ div >
</ div >
2024-06-04 14:37:16 -07:00
< a id = "ga0619a62c5fd886f1016030abe91f0557" name = "ga0619a62c5fd886f1016030abe91f0557" ></ a >
< h2 class = "memtitle" >< span class = "permalink" >< a href = "#ga0619a62c5fd886f1016030abe91f0557" > ◆  </ a ></ span > mi_malloc_tp</ h2 >
2019-06-22 10:30:09 -07:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > #define mi_malloc_tp</ td >
< td > (</ td >
2024-06-04 14:37:16 -07:00
< td class = "paramtype" ></ td > < td class = "paramname" >< span class = "paramname" >< em > tp</ em ></ span ></ td >< td > )</ td >
2019-06-22 10:30:09 -07:00
< td ></ td >
</ tr >
</ table >
</ div >< div class = "memdoc" >
2025-01-03 17:56:15 -08:00
< p > Allocate a block of type < em class = "arg" > tp</ em > . </ p >
2019-06-22 10:30:09 -07:00
< 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 >
2025-01-03 17:56:15 -08:00
< dl class = "section return" >< dt > Returns</ dt >< dd > A pointer to an object of type < em class = "arg" > tp</ em > , or < em class = "arg" > NULL</ em > if out of memory.</ dd ></ dl >
2024-06-04 14:37:16 -07:00
< p >< b > Example:</ b > </ p >< div class = "fragment" >< div class = "line" >< span class = "keywordtype" > int</ span > * p = < a class = "code hl_define" href = "#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#gae1dd97b542420c87ae085e822b1229e8" title = "Allocate size bytes." > mi_malloc()</ a > </ dd ></ dl >
2019-06-22 10:30:09 -07:00
</ div >
</ div >
2024-06-04 14:37:16 -07:00
< a id = "gae5cb6e0fafc9f23169c5622e077afe8b" name = "gae5cb6e0fafc9f23169c5622e077afe8b" ></ a >
< h2 class = "memtitle" >< span class = "permalink" >< a href = "#gae5cb6e0fafc9f23169c5622e077afe8b" > ◆  </ a ></ span > mi_mallocn_tp</ h2 >
2019-06-22 10:30:09 -07:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > #define mi_mallocn_tp</ td >
< td > (</ td >
2024-06-04 14:37:16 -07:00
< td class = "paramtype" ></ td > < td class = "paramname" >< span class = "paramname" >< em > tp</ em ></ span > , </ td >
2019-06-22 10:30:09 -07:00
</ tr >
< tr >
< td class = "paramkey" ></ td >
< td ></ td >
2024-06-04 14:37:16 -07:00
< td class = "paramtype" ></ td > < td class = "paramname" >< span class = "paramname" >< em > count</ em ></ span >   )</ td >
2019-06-22 10:30:09 -07:00
</ tr >
</ table >
</ div >< div class = "memdoc" >
2025-01-03 17:56:15 -08:00
< p > Allocate < em class = "arg" > count</ em > blocks of type < em class = "arg" > tp</ em > . </ p >
2019-06-22 10:30:09 -07:00
</ div >
</ div >
2024-06-04 14:37:16 -07:00
< a id = "ga1158b49a55dfa81f58a4426a7578f523" name = "ga1158b49a55dfa81f58a4426a7578f523" ></ a >
< h2 class = "memtitle" >< span class = "permalink" >< a href = "#ga1158b49a55dfa81f58a4426a7578f523" > ◆  </ a ></ span > mi_reallocn_tp</ h2 >
2019-06-22 10:30:09 -07:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > #define mi_reallocn_tp</ td >
< td > (</ td >
2024-06-04 14:37:16 -07:00
< td class = "paramtype" ></ td > < td class = "paramname" >< span class = "paramname" >< em > p</ em ></ span > , </ td >
2019-06-22 10:30:09 -07:00
</ tr >
< tr >
< td class = "paramkey" ></ td >
< td ></ td >
2024-06-04 14:37:16 -07:00
< td class = "paramtype" ></ td > < td class = "paramname" >< span class = "paramname" >< em > tp</ em ></ span > , </ td >
2019-06-22 10:30:09 -07:00
</ tr >
< tr >
< td class = "paramkey" ></ td >
< td ></ td >
2024-06-04 14:37:16 -07:00
< td class = "paramtype" ></ td > < td class = "paramname" >< span class = "paramname" >< em > count</ em ></ span >   )</ td >
2019-06-22 10:30:09 -07:00
</ tr >
</ table >
</ div >< div class = "memdoc" >
2025-01-03 17:56:15 -08:00
< p > Re-allocate to < em class = "arg" > count</ em > blocks of type < em class = "arg" > tp</ em > . </ p >
2019-06-22 10:30:09 -07:00
</ div >
</ div >
2024-06-04 14:37:16 -07:00
< a id = "gac77a61bdaf680a803785fe307820b48c" name = "gac77a61bdaf680a803785fe307820b48c" ></ a >
< h2 class = "memtitle" >< span class = "permalink" >< a href = "#gac77a61bdaf680a803785fe307820b48c" > ◆  </ a ></ span > mi_zalloc_tp</ h2 >
2019-06-22 10:30:09 -07:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > #define mi_zalloc_tp</ td >
< td > (</ td >
2024-06-04 14:37:16 -07:00
< td class = "paramtype" ></ td > < td class = "paramname" >< span class = "paramname" >< em > tp</ em ></ span ></ td >< td > )</ td >
2019-06-22 10:30:09 -07:00
< td ></ td >
</ tr >
</ table >
</ div >< div class = "memdoc" >
2025-01-03 17:56:15 -08:00
< p > Allocate a zero-initialized block of type < em class = "arg" > tp</ em > . </ p >
2019-06-22 10:30:09 -07:00
</ div >
</ div >
</ div > <!-- contents -->
</ div > <!-- doc-content -->
<!-- start footer part -->
< div id = "nav-path" class = "navpath" > <!-- id is needed for treeview function! -->
< ul >
2025-01-03 17:56:15 -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.13.1 </ li >
2019-06-22 10:30:09 -07:00
</ ul >
</ div >
</ body >
</ html >