亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? glib-memory-allocation.html

?? 最新gtk中文資料集
?? HTML
?? 第 1 頁 / 共 3 頁
字號:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"><title>Memory Allocation</title><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="index.html" title="GLib Reference Manual"><link rel="up" href="glib-core.html" title="GLib Core Application Support"><link rel="prev" href="glib-Dynamic-Loading-of-Modules.html" title="Dynamic Loading of Modules"><link rel="next" href="glib-IO-Channels.html" title="IO Channels"><meta name="generator" content="GTK-Doc V1.9 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="chapter" href="glib.html" title="GLib Overview"><link rel="chapter" href="glib-fundamentals.html" title="GLib Fundamentals"><link rel="chapter" href="glib-core.html" title="GLib Core Application Support"><link rel="chapter" href="glib-utilities.html" title="GLib Utilities"><link rel="chapter" href="glib-data-types.html" title="GLib Data Types"><link rel="chapter" href="tools.html" title="GLib Tools"><link rel="index" href="ix01.html" title="Index"><link rel="index" href="ix02.html" title="Index of deprecated symbols"><link rel="index" href="ix03.html" title="Index of new symbols in 2.2"><link rel="index" href="ix04.html" title="Index of new symbols in 2.4"><link rel="index" href="ix05.html" title="Index of new symbols in 2.6"><link rel="index" href="ix06.html" title="Index of new symbols in 2.8"><link rel="index" href="ix07.html" title="Index of new symbols in 2.10"><link rel="index" href="ix08.html" title="Index of new symbols in 2.12"><link rel="index" href="ix09.html" title="Index of new symbols in 2.14"><link rel="index" href="ix10.html" title="Index of new symbols in 2.16"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="glib-Dynamic-Loading-of-Modules.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="glib-core.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GLib Reference Manual</th><td><a accesskey="n" href="glib-IO-Channels.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr><tr><td colspan="5" class="shortcuts"><nobr><a href="#id2920965" class="shortcut">Top</a>                  &#160;|&#160;                  <a href="#id2921342" class="shortcut">Description</a></nobr></td></tr></table><div class="refentry" lang="en"><a name="glib-Memory-Allocation"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><a name="id2920965"></a><span class="refentrytitle">Memory Allocation</span></h2><p>Memory Allocation &#8212; general memory-handling</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">#include &lt;glib.h&gt;#define             <a class="link" href="glib-Memory-Allocation.html#g-new">g_new</a>                               (struct_type, n_structs)#define             <a class="link" href="glib-Memory-Allocation.html#g-new0">g_new0</a>                              (struct_type, n_structs)#define             <a class="link" href="glib-Memory-Allocation.html#g-renew">g_renew</a>                             (struct_type, mem, n_structs)#define             <a class="link" href="glib-Memory-Allocation.html#g-try-new">g_try_new</a>                           (struct_type, n_structs)#define             <a class="link" href="glib-Memory-Allocation.html#g-try-new0">g_try_new0</a>                          (struct_type, n_structs)#define             <a class="link" href="glib-Memory-Allocation.html#g-try-renew">g_try_renew</a>                         (struct_type, mem, n_structs)<a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a>            <a class="link" href="glib-Memory-Allocation.html#g-malloc">g_malloc</a>                            (<a class="link" href="glib-Basic-Types.html#gsize">gsize</a> n_bytes);<a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a>            <a class="link" href="glib-Memory-Allocation.html#g-malloc0">g_malloc0</a>                           (<a class="link" href="glib-Basic-Types.html#gsize">gsize</a> n_bytes);<a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a>            <a class="link" href="glib-Memory-Allocation.html#g-realloc">g_realloc</a>                           (<a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a> mem,                                                         <a class="link" href="glib-Basic-Types.html#gsize">gsize</a> n_bytes);<a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a>            <a class="link" href="glib-Memory-Allocation.html#g-try-malloc">g_try_malloc</a>                        (<a class="link" href="glib-Basic-Types.html#gsize">gsize</a> n_bytes);<a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a>            <a class="link" href="glib-Memory-Allocation.html#g-try-malloc0">g_try_malloc0</a>                       (<a class="link" href="glib-Basic-Types.html#gsize">gsize</a> n_bytes);<a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a>            <a class="link" href="glib-Memory-Allocation.html#g-try-realloc">g_try_realloc</a>                       (<a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a> mem,                                                         <a class="link" href="glib-Basic-Types.html#gsize">gsize</a> n_bytes);void                <a class="link" href="glib-Memory-Allocation.html#g-free">g_free</a>                              (<a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a> mem);extern              gboolean <a class="link" href="glib-Memory-Allocation.html#g-mem-gc-friendly">g_mem_gc_friendly</a>;#define             <a class="link" href="glib-Memory-Allocation.html#g-alloca">g_alloca</a>                            (size)#define             <a class="link" href="glib-Memory-Allocation.html#g-newa">g_newa</a>                              (struct_type, n_structs)#define             <a class="link" href="glib-Memory-Allocation.html#g-memmove">g_memmove</a>                           (dest,src,len)<a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a>            <a class="link" href="glib-Memory-Allocation.html#g-memdup">g_memdup</a>                            (<a class="link" href="glib-Basic-Types.html#gconstpointer">gconstpointer</a> mem,                                                         <a class="link" href="glib-Basic-Types.html#guint">guint</a> byte_size);                    <a class="link" href="glib-Memory-Allocation.html#GMemVTable">GMemVTable</a>;void                <a class="link" href="glib-Memory-Allocation.html#g-mem-set-vtable">g_mem_set_vtable</a>                    (<a class="link" href="glib-Memory-Allocation.html#GMemVTable">GMemVTable</a> *vtable);<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            <a class="link" href="glib-Memory-Allocation.html#g-mem-is-system-malloc">g_mem_is_system_malloc</a>              (void);extern              GMemVTable	*<a class="link" href="glib-Memory-Allocation.html#glib-mem-profiler-table">glib_mem_profiler_table</a>;void                <a class="link" href="glib-Memory-Allocation.html#g-mem-profile">g_mem_profile</a>                       (void);</pre></div><div class="refsect1" lang="en"><a name="id2921342"></a><h2>Description</h2><p>These functions provide support for allocating and freeing memory.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>If any call to allocate memory fails, the application is terminated.This also means that there is no need to check if the call succeeded.</p></div><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>It's important to match <a class="link" href="glib-Memory-Allocation.html#g-malloc"><code class="function">g_malloc()</code></a> with <a class="link" href="glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>, plain <code class="function">malloc()</code> with <code class="function">free()</code>,and (if you're using C++) new with delete and new[] with delete[]. Otherwisebad things can happen, since these allocators may use different memorypools (and new/delete call constructors and destructors). See also<a class="link" href="glib-Memory-Allocation.html#g-mem-set-vtable"><code class="function">g_mem_set_vtable()</code></a>.</p></div></div><div class="refsect1" lang="en"><a name="id2921432"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2921442"></a><h3><a name="g-new"></a>g_new()</h3><a class="indexterm" name="id2921455"></a><pre class="programlisting">#define             g_new(struct_type, n_structs)</pre><p>Allocates <em class="parameter"><code>n_structs</code></em> elements of type <em class="parameter"><code>struct_type</code></em>.The returned pointer is cast to a pointer to the given type.If <em class="parameter"><code>n_structs</code></em> is 0 it returns <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</p><p>Since the returned pointer is already casted to the right type,it is normally unnecessary to cast it explicitly, and doingso might hide memory allocation errors.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>struct_type</code></em>&#160;:</span></p></td><td>the type of the elements to allocate</td></tr><tr><td><p><span class="term"><em class="parameter"><code>n_structs</code></em>&#160;:</span></p></td><td>the number of elements to allocate</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td>a pointer to the allocated memory, cast to a pointer to <em class="parameter"><code>struct_type</code></em></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2921556"></a><h3><a name="g-new0"></a>g_new0()</h3><a class="indexterm" name="id2921568"></a><pre class="programlisting">#define             g_new0(struct_type, n_structs)</pre><p>Allocates <em class="parameter"><code>n_structs</code></em> elements of type <em class="parameter"><code>struct_type</code></em>, initialized to 0's.The returned pointer is cast to a pointer to the given type.If <em class="parameter"><code>n_structs</code></em> is 0 it returns <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</p><p>Since the returned pointer is already casted to the right type,it is normally unnecessary to cast it explicitly, and doingso might hide memory allocation errors.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>struct_type</code></em>&#160;:</span></p></td><td>the type of the elements to allocate.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>n_structs</code></em>&#160;:</span></p></td><td>the number of elements to allocate.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td>a pointer to the allocated memory, cast to a pointer to <em class="parameter"><code>struct_type</code></em>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2921670"></a><h3><a name="g-renew"></a>g_renew()</h3><a class="indexterm" name="id2921682"></a><pre class="programlisting">#define             g_renew(struct_type, mem, n_structs)</pre><p>Reallocates the memory pointed to by <em class="parameter"><code>mem</code></em>, so that it now has space for<em class="parameter"><code>n_structs</code></em> elements of type <em class="parameter"><code>struct_type</code></em>. It returns the new address of the memory, which may have been moved.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>struct_type</code></em>&#160;:</span></p></td><td>the type of the elements to allocate</td></tr><tr><td><p><span class="term"><em class="parameter"><code>mem</code></em>&#160;:</span></p></td><td>the currently allocated memory</td></tr><tr><td><p><span class="term"><em class="parameter"><code>n_structs</code></em>&#160;:</span></p></td><td>the number of elements to allocate</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td>a pointer to the new allocated memory, cast to a pointer to <em class="parameter"><code>struct_type</code></em></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2921782"></a><h3><a name="g-try-new"></a>g_try_new()</h3><a class="indexterm" name="id2921796"></a><pre class="programlisting">#define             g_try_new(struct_type, n_structs)</pre><p>Attempts to allocate <em class="parameter"><code>n_structs</code></em> elements of type <em class="parameter"><code>struct_type</code></em>, and returns <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> on failure. Contrast with <a class="link" href="glib-Memory-Allocation.html#g-new"><code class="function">g_new()</code></a>, which aborts the program on failure.The returned pointer is cast to a pointer to the given type. If <em class="parameter"><code>n_structs</code></em> is 0 it returns <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>struct_type</code></em>&#160;:</span></p></td><td>the type of the elements to allocate</td></tr><tr><td><p><span class="term"><em class="parameter"><code>n_structs</code></em>&#160;:</span></p></td><td>the number of elements to allocate</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td>a pointer to the allocated memory, cast to a pointer to <em class="parameter"><code>struct_type</code></em></td></tr></tbody></table></div><p class="since">Since 2.8</p></div><hr><div class="refsect2" lang="en"><a name="id2921920"></a><h3><a name="g-try-new0"></a>g_try_new0()</h3><a class="indexterm" name="id2921935"></a><pre class="programlisting">#define             g_try_new0(struct_type, n_structs)</pre><p>Attempts to allocate <em class="parameter"><code>n_structs</code></em> elements of type <em class="parameter"><code>struct_type</code></em>, initialized to 0's, and returns <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> on failure. Contrast with <a class="link" href="glib-Memory-Allocation.html#g-new0"><code class="function">g_new0()</code></a>, which aborts the program on failure.The returned pointer is cast to a pointer to the given type.The function returns <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> when <em class="parameter"><code>n_structs</code></em> is 0.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>struct_type</code></em>&#160;:</span></p></td><td>the type of the elements to allocate</td></tr><tr><td><p><span class="term"><em class="parameter"><code>n_structs</code></em>&#160;:</span></p></td><td>the number of elements to allocate</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td>a pointer to the allocated memory, cast to a pointer to <em class="parameter"><code>struct_type</code></em></td>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91成人在线精品| 久久久久久久网| 在线免费不卡视频| 91麻豆国产在线观看| 99久久99久久免费精品蜜臀| 成人毛片视频在线观看| 成人激情小说网站| 成人app软件下载大全免费| 成人av资源下载| 91视视频在线观看入口直接观看www| 不卡一区二区在线| 97se狠狠狠综合亚洲狠狠| www.av亚洲| 91蜜桃免费观看视频| 在线看日本不卡| 91精品国产色综合久久不卡电影 | 成人高清伦理免费影院在线观看| 成人国产亚洲欧美成人综合网| voyeur盗摄精品| 色婷婷久久综合| 欧美精品久久久久久久多人混战| 91精品国产乱码久久蜜臀| 欧美成人伊人久久综合网| 国产性天天综合网| 亚洲视频在线观看三级| 亚洲成人av电影在线| 蜜桃久久精品一区二区| 国产成人99久久亚洲综合精品| av亚洲精华国产精华精| 欧美网站一区二区| 欧美大片在线观看一区| 国产精品女主播在线观看| 亚洲美女屁股眼交3| 婷婷综合另类小说色区| 精品一区二区日韩| 91免费视频观看| 日韩视频免费观看高清完整版 | 成人免费看视频| 欧美日韩一区三区四区| 精品欧美久久久| 最近日韩中文字幕| 免费人成网站在线观看欧美高清| 国产一区二区在线观看视频| 91啪九色porn原创视频在线观看| 制服丝袜亚洲色图| 中文子幕无线码一区tr| 婷婷国产在线综合| 成人sese在线| 91精品国产美女浴室洗澡无遮挡| 欧美激情艳妇裸体舞| 五月婷婷综合激情| 成人一级视频在线观看| 欧美高清视频一二三区 | 午夜视黄欧洲亚洲| 国产成人在线电影| 欧美日韩精品一区二区在线播放| 久久久久9999亚洲精品| 亚洲成人动漫在线免费观看| 国产福利一区在线| 91精品国产91久久久久久一区二区| 国产精品久久看| 麻豆精品一区二区| 欧洲另类一二三四区| 欧美极品美女视频| 久久精品99国产精品| 91豆麻精品91久久久久久| 国产亚洲成av人在线观看导航 | 国产精品亚洲第一| 91精品在线观看入口| 综合自拍亚洲综合图不卡区| 国产综合久久久久久久久久久久| 欧美性大战久久| 国产精品久久久久7777按摩| 久久av中文字幕片| 欧美日韩免费在线视频| 日韩毛片视频在线看| 国产精品66部| 精品国精品国产| 亚洲成人激情自拍| 色94色欧美sute亚洲线路二| 国产精品网站在线观看| 国产一区亚洲一区| 欧美一卡二卡三卡| 午夜av一区二区| 欧美三电影在线| 亚洲最大成人网4388xx| 99精品国产视频| 国产精品私人自拍| 国产盗摄一区二区三区| 久久五月婷婷丁香社区| 美日韩一级片在线观看| 91精品国产欧美一区二区| 亚洲午夜精品网| 欧洲精品一区二区| 亚洲美女免费视频| 91碰在线视频| 一区二区欧美在线观看| 99久久99久久精品免费看蜜桃| 欧美极品少妇xxxxⅹ高跟鞋| 国产很黄免费观看久久| 亚洲国产精品成人久久综合一区| 国产精品性做久久久久久| 久久精品视频一区二区三区| 国产成人精品影视| 国产女同性恋一区二区| 国产成人夜色高潮福利影视| 久久久蜜桃精品| 国产不卡免费视频| 国产精品美女久久福利网站| 99久久久精品| 亚洲一区二区av在线| 欧美午夜一区二区| 视频一区二区不卡| 精品精品欲导航| 韩国女主播成人在线观看| 久久精品一二三| 波多野结衣在线aⅴ中文字幕不卡| 1000精品久久久久久久久| 97国产精品videossex| 一区二区三区久久| 欧美喷水一区二区| 色妹子一区二区| 亚洲精品中文在线观看| 在线观看精品一区| 人人精品人人爱| 久久九九国产精品| 色诱亚洲精品久久久久久| 亚洲高清在线视频| 日韩女优制服丝袜电影| 国产精品一区二区你懂的| 成人免费一区二区三区在线观看| 在线精品国精品国产尤物884a| 亚洲不卡av一区二区三区| 欧美成人综合网站| 99久久99久久精品免费看蜜桃| 亚洲国产aⅴ成人精品无吗| 日韩美女在线视频 | 久久婷婷成人综合色| av网站免费线看精品| 亚洲国产精品久久久久婷婷884| 欧美一级免费大片| caoporn国产一区二区| 天堂在线一区二区| 久久久久久黄色| 在线视频你懂得一区| 精品一区二区三区免费播放| 亚洲图片激情小说| 日韩欧美亚洲国产另类| 99久久精品99国产精品| 蜜桃视频在线观看一区| 国产精品高潮久久久久无| 91精品国产综合久久久蜜臀图片| 国产91精品欧美| 日韩av中文字幕一区二区三区| 欧美经典一区二区三区| 欧美三级电影一区| www.亚洲免费av| 久久99精品国产麻豆不卡| 亚洲激情自拍视频| 国产三级一区二区三区| 欧美日韩成人综合天天影院| 成人ar影院免费观看视频| 日本不卡免费在线视频| 亚洲人亚洲人成电影网站色| 欧美电影免费提供在线观看| 91福利国产成人精品照片| 国产激情视频一区二区三区欧美| 日韩在线一区二区| 亚洲男同性视频| 国产视频一区不卡| 日韩午夜在线观看| 欧美色男人天堂| 91亚洲精品乱码久久久久久蜜桃| 黄页视频在线91| 日韩精品91亚洲二区在线观看| 成人免费在线播放视频| 国产调教视频一区| 日韩精品一区二区三区在线观看| 欧美在线观看视频一区二区三区| 成人高清伦理免费影院在线观看| 国模冰冰炮一区二区| 日本一道高清亚洲日美韩| 亚洲最快最全在线视频| 中文字幕制服丝袜一区二区三区 | 亚洲精品国产高清久久伦理二区| 欧美精品一区二区久久久 | 日韩成人一区二区| 亚洲精品视频在线观看网站| 国产精品伦理一区二区| 久久久国产一区二区三区四区小说| 欧美精品日日鲁夜夜添| 91久久久免费一区二区| 99久久精品免费看国产| 成人免费毛片嘿嘿连载视频| 国产精一区二区三区| 久久99国产乱子伦精品免费| 美脚の诱脚舐め脚责91 | 日本午夜一本久久久综合| 亚洲国产中文字幕在线视频综合| 亚洲日本青草视频在线怡红院|