⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 glib-io-channels.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 5 页
字号:
</tr><tr><td><p><span class="term"><em class="parameter"><code>count</code></em>&#160;:</span></p></td><td> the size of the buffer. If -1, the buffer        is taken to be a nul-terminated string.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>bytes_written</code></em>&#160;:</span></p></td><td> The number of bytes written. This can be nonzero                even if the return value is not <a class="link" href="glib-IO-Channels.html#G-IO-STATUS-NORMAL:CAPS"><code class="literal">G_IO_STATUS_NORMAL</code></a>.                If the return value is <a class="link" href="glib-IO-Channels.html#G-IO-STATUS-NORMAL:CAPS"><code class="literal">G_IO_STATUS_NORMAL</code></a> and the                channel is blocking, this will always be equal                to <em class="parameter"><code>count</code></em> if <em class="parameter"><code>count</code></em> &gt;= 0.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td><td> a location to return an error of type <a class="link" href="glib-Character-Set-Conversion.html#GConvertError"><span class="type">GConvertError</span></a>        or <a class="link" href="glib-IO-Channels.html#GIOChannelError"><span class="type">GIOChannelError</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> the status of the operation.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2931868"></a><h3><a name="g-io-channel-write-unichar"></a>g_io_channel_write_unichar ()</h3><a class="indexterm" name="id2931881"></a><pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOStatus">GIOStatus</a>           g_io_channel_write_unichar          (<a class="link" href="glib-IO-Channels.html#GIOChannel">GIOChannel</a> *channel,                                                         <a class="link" href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> thechar,                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);</pre><p>Writes a Unicode character to <em class="parameter"><code>channel</code></em>.This function cannot be called on a channel with <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> encoding.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>channel</code></em>&#160;:</span></p></td><td> a <a class="link" href="glib-IO-Channels.html#GIOChannel"><span class="type">GIOChannel</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>thechar</code></em>&#160;:</span></p></td><td> a character</td></tr><tr><td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td><td> location to return an error of type <a class="link" href="glib-Character-Set-Conversion.html#GConvertError"><span class="type">GConvertError</span></a>        or <a class="link" href="glib-IO-Channels.html#GIOChannelError"><span class="type">GIOChannelError</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> a <a class="link" href="glib-IO-Channels.html#GIOStatus"><span class="type">GIOStatus</span></a></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2932034"></a><h3><a name="g-io-channel-flush"></a>g_io_channel_flush ()</h3><a class="indexterm" name="id2932047"></a><pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOStatus">GIOStatus</a>           g_io_channel_flush                  (<a class="link" href="glib-IO-Channels.html#GIOChannel">GIOChannel</a> *channel,                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);</pre><p>Flushes the write buffer for the GIOChannel.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>channel</code></em>&#160;:</span></p></td><td> a <a class="link" href="glib-IO-Channels.html#GIOChannel"><span class="type">GIOChannel</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td><td> location to store an error of type <a class="link" href="glib-IO-Channels.html#GIOChannelError"><span class="type">GIOChannelError</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> the status of the operation: One of  <span class="type">G_IO_CHANNEL_NORMAL</span>, <span class="type">G_IO_CHANNEL_AGAIN</span>, or  <a class="link" href="glib-IO-Channels.html#G-IO-CHANNEL-ERROR:CAPS"><span class="type">G_IO_CHANNEL_ERROR</span></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2932175"></a><h3><a name="g-io-channel-seek-position"></a>g_io_channel_seek_position ()</h3><a class="indexterm" name="id2932188"></a><pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOStatus">GIOStatus</a>           g_io_channel_seek_position          (<a class="link" href="glib-IO-Channels.html#GIOChannel">GIOChannel</a> *channel,                                                         <a class="link" href="glib-Basic-Types.html#gint64">gint64</a> offset,                                                         <a class="link" href="glib-IO-Channels.html#GSeekType">GSeekType</a> type,                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);</pre><p>Replacement for <a class="link" href="glib-IO-Channels.html#g-io-channel-seek"><code class="function">g_io_channel_seek()</code></a> with the new API.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>channel</code></em>&#160;:</span></p></td><td> a <a class="link" href="glib-IO-Channels.html#GIOChannel"><span class="type">GIOChannel</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>offset</code></em>&#160;:</span></p></td><td> The offset in bytes from the position specified by <em class="parameter"><code>type</code></em></td></tr><tr><td><p><span class="term"><em class="parameter"><code>type</code></em>&#160;:</span></p></td><td> a <a class="link" href="glib-IO-Channels.html#GSeekType"><span class="type">GSeekType</span></a>. The type <a class="link" href="glib-IO-Channels.html#G-SEEK-CUR:CAPS"><code class="literal">G_SEEK_CUR</code></a> is only allowed in those                     cases where a call to <a class="link" href="glib-IO-Channels.html#g-io-channel-set-encoding"><code class="function">g_io_channel_set_encoding()</code></a>                     is allowed. See the documentation for                     <a class="link" href="glib-IO-Channels.html#g-io-channel-set-encoding"><code class="function">g_io_channel_set_encoding()</code></a> for details.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td><td> A location to return an error of type <a class="link" href="glib-IO-Channels.html#GIOChannelError"><span class="type">GIOChannelError</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> the status of the operation.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2932391"></a><h3><a name="GSeekType"></a>enum GSeekType</h3><a class="indexterm" name="id2932403"></a><pre class="programlisting">typedef enum{  G_SEEK_CUR,  G_SEEK_SET,  G_SEEK_END} GSeekType;</pre><p>An enumeration specifying the base position for a <a class="link" href="glib-IO-Channels.html#g-io-channel-seek-position"><code class="function">g_io_channel_seek_position()</code></a>operation.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><a name="G-SEEK-CUR:CAPS"></a><code class="literal">G_SEEK_CUR</code></span></p></td><td>the current position in the file.</td></tr><tr><td><p><span class="term"><a name="G-SEEK-SET:CAPS"></a><code class="literal">G_SEEK_SET</code></span></p></td><td>the start of the file.</td></tr><tr><td><p><span class="term"><a name="G-SEEK-END:CAPS"></a><code class="literal">G_SEEK_END</code></span></p></td><td>the end of the file.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2932503"></a><h3><a name="g-io-channel-shutdown"></a>g_io_channel_shutdown ()</h3><a class="indexterm" name="id2932516"></a><pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOStatus">GIOStatus</a>           g_io_channel_shutdown               (<a class="link" href="glib-IO-Channels.html#GIOChannel">GIOChannel</a> *channel,                                                         <a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a> flush,     

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -