📄 glib-basic-types.html
字号:
<a class="indexterm" name="id2819950"></a><pre class="programlisting">typedef unsigned short gushort;</pre><p>Corresponds to the standard C <span class="type">unsigned short</span> type.Values of this type can range from 0 to <a href="glib-Limits-of-Basic-Types.html#G-MAXUSHORT:CAPS"><span class="type">G_MAXUSHORT</span></a>.</p></div><hr><div class="refsect2" lang="en"><a name="id2819979"></a><h3><a name="glong"></a>glong</h3><a class="indexterm" name="id2819989"></a><pre class="programlisting">typedef long glong;</pre><p>Corresponds to the standard C <span class="type">long</span> type.Values of this type can range from <a href="glib-Limits-of-Basic-Types.html#G-MINLONG:CAPS"><span class="type">G_MINLONG</span></a> to <a href="glib-Limits-of-Basic-Types.html#G-MAXLONG:CAPS"><span class="type">G_MAXLONG</span></a>.</p></div><hr><div class="refsect2" lang="en"><a name="id2820027"></a><h3><a name="gulong"></a>gulong</h3><a class="indexterm" name="id2820037"></a><pre class="programlisting">typedef unsigned long gulong;</pre><p>Corresponds to the standard C <span class="type">unsigned long</span> type.Values of this type can range from 0 to <a href="glib-Limits-of-Basic-Types.html#G-MAXULONG:CAPS"><span class="type">G_MAXULONG</span></a>.</p></div><hr><div class="refsect2" lang="en"><a name="id2820066"></a><h3><a name="gint8"></a>gint8</h3><a class="indexterm" name="id2820076"></a><pre class="programlisting">typedef signed char gint8;</pre><p>A signed integer guaranteed to be 8 bits on all platforms.Values of this type can range from -128 to 127.</p></div><hr><div class="refsect2" lang="en"><a name="id2820093"></a><h3><a name="guint8"></a>guint8</h3><a class="indexterm" name="id2820103"></a><pre class="programlisting">typedef unsigned char guint8;</pre><p>An unsigned integer guaranteed to be 8 bits on all platforms.Values of this type can range from 0 to 255.</p></div><hr><div class="refsect2" lang="en"><a name="id2820120"></a><h3><a name="gint16"></a>gint16</h3><a class="indexterm" name="id2820130"></a><pre class="programlisting">typedef signed short gint16;</pre><p>A signed integer guaranteed to be 16 bits on all platforms.Values of this type can range from -32,768 to 32,767.</p></div><hr><div class="refsect2" lang="en"><a name="id2820147"></a><h3><a name="guint16"></a>guint16</h3><a class="indexterm" name="id2820157"></a><pre class="programlisting">typedef unsigned short guint16;</pre><p>An unsigned integer guaranteed to be 16 bits on all platforms.Values of this type can range from 0 to 65,535.</p></div><hr><div class="refsect2" lang="en"><a name="id2820174"></a><h3><a name="gint32"></a>gint32</h3><a class="indexterm" name="id2820184"></a><pre class="programlisting">typedef signed int gint32;</pre><p>A signed integer guaranteed to be 32 bits on all platforms.Values of this type can range from -2,147,483,648 to 2,147,483,647.</p></div><hr><div class="refsect2" lang="en"><a name="id2820202"></a><h3><a name="guint32"></a>guint32</h3><a class="indexterm" name="id2820211"></a><pre class="programlisting">typedef unsigned int guint32;</pre><p>An unsigned integer guaranteed to be 32 bits on all platforms.Values of this type can range from 0 to 4,294,967,295.</p></div><hr><div class="refsect2" lang="en"><a name="id2820229"></a><h3><a name="G-HAVE-GINT64:CAPS"></a>G_HAVE_GINT64</h3><a class="indexterm" name="id2820239"></a><pre class="programlisting">#define G_HAVE_GINT64 1 /* deprecated, always true */</pre><p>This macro is defined if 64-bit signed and unsigned integers are availableon the platform.</p></div><hr><div class="refsect2" lang="en"><a name="id2820256"></a><h3><a name="gint64"></a>gint64</h3><a class="indexterm" name="id2820266"></a><pre class="programlisting">G_GNUC_EXTENSION typedef signed long long gint64;</pre><p>A signed integer guaranteed to be 64 bits on all platforms on which it isavailable (see <a href="glib-Basic-Types.html#G-HAVE-GINT64:CAPS"><span class="type">G_HAVE_GINT64</span></a>).Values of this type can range from -9,223,372,036,854,775,808 to9,223,372,036,854,775,807.</p></div><hr><div class="refsect2" lang="en"><a name="id2820293"></a><h3><a name="guint64"></a>guint64</h3><a class="indexterm" name="id2820303"></a><pre class="programlisting">G_GNUC_EXTENSION typedef unsigned long long guint64;</pre><p>An unsigned integer guaranteed to be 64 bits on all platforms on which it isavailable (see <a href="glib-Basic-Types.html#G-HAVE-GINT64:CAPS"><span class="type">G_HAVE_GINT64</span></a>).Values of this type can range from 0 to 18,446,744,073,709,551,615.</p></div><hr><div class="refsect2" lang="en"><a name="id2820330"></a><h3><a name="G-GINT64-CONSTANT:CAPS"></a>G_GINT64_CONSTANT()</h3><a class="indexterm" name="id2820340"></a><pre class="programlisting">#define G_GINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##LL))</pre><p>This macro is used to insert 64-bit integer literals into the source code.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>val</code></em> :</span></td><td>a literal integer value, e.g. 0x1d636b02300a7aa7U.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2820377"></a><h3><a name="gfloat"></a>gfloat</h3><a class="indexterm" name="id2820386"></a><pre class="programlisting">typedef float gfloat;</pre><p>Corresponds to the standard C <span class="type">float</span> type.Values of this type can range from -<a href="glib-Limits-of-Basic-Types.html#G-MAXFLOAT:CAPS"><span class="type">G_MAXFLOAT</span></a> to <a href="glib-Limits-of-Basic-Types.html#G-MAXFLOAT:CAPS"><span class="type">G_MAXFLOAT</span></a>.</p></div><hr><div class="refsect2" lang="en"><a name="id2820424"></a><h3><a name="gdouble"></a>gdouble</h3><a class="indexterm" name="id2820434"></a><pre class="programlisting">typedef double gdouble;</pre><p>Corresponds to the standard C <span class="type">double</span> type.Values of this type can range from -<a href="glib-Limits-of-Basic-Types.html#G-MAXDOUBLE:CAPS"><span class="type">G_MAXDOUBLE</span></a> to <a href="glib-Limits-of-Basic-Types.html#G-MAXDOUBLE:CAPS"><span class="type">G_MAXDOUBLE</span></a>.</p></div><hr><div class="refsect2" lang="en"><a name="id2820472"></a><h3><a name="gsize"></a>gsize</h3><a class="indexterm" name="id2820481"></a><pre class="programlisting">typedef unsigned int gsize;</pre><p>An unsigned 32-bit integer intended to represent sizes of data structures.</p></div><hr><div class="refsect2" lang="en"><a name="id2820498"></a><h3><a name="gssize"></a>gssize</h3><a class="indexterm" name="id2820507"></a><pre class="programlisting">typedef signed int gssize;</pre><p>A signed 32-bit integer intended to represent sizes of data structures.</p></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="glib-Version-Information.html"><b><< Version Information</b></a></td><td align="right"><a accesskey="n" href="glib-Limits-of-Basic-Types.html"><b>Limits of Basic Types >></b></a></td></tr></table></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -