<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>glibmm 2.4: Gio::MemoryInputStream Class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head> <body bgcolor="#ffffff"> <table border="0" width="100%"> <tr> <td width="10%" height="40"><img src="../../images/gtkmm_logo.gif" alt="logo" border="0" width="100%" height="100%"/></td> <td width="90%" height="40"><img src="../../images/top.gif" alt="top" width="100%" height="40"/></td> </tr> </table> <center> <a class="qindex" href="../../../../gtkmm-2.4/docs/index.html">Main Page</a> <a href="../../../../gtkmm-2.4/docs/reference/html/group__Widgets.html">Widgets</a> <a class="qindex" href="namespaces.html">glibmm Namespaces</a> <a href="../../../../gtkmm-2.4/docs/tutorial/html/index.html"> Book</a> </center> <hr width="100%"/> <!-- begin main content --> <div id="content"> <!-- Generated by Doxygen 1.5.3 --> <div class="nav"> <a class="el" href="namespaceGio.html">Gio</a>::<a class="el" href="classGio_1_1MemoryInputStream.html">MemoryInputStream</a></div> <h1>Gio::MemoryInputStream Class Reference<br> <small> [<a class="el" href="group__Streams.html">Stream Classes</a>]</small> </h1><!-- doxytag: class="Gio::MemoryInputStream" --><!-- doxytag: inherits="Gio::InputStream,Gio::Seekable" --><a class="el" href="classGio_1_1MemoryInputStream.html" title="MemoryInputStream implements InputStream for arbitrary memory chunks.">MemoryInputStream</a> implements <a class="el" href="classGio_1_1InputStream.html" title="Base class for implementing streaming input.">InputStream</a> for arbitrary memory chunks. <a href="#_details">More...</a> <p> <div class="dynheader"> Inheritance diagram for Gio::MemoryInputStream:</div> <div class="dynsection"> <p><center><img src="classGio_1_1MemoryInputStream__inherit__graph.png" border="0" usemap="#Gio_1_1MemoryInputStream__inherit__map" alt="Inheritance graph"></center> <map name="Gio_1_1MemoryInputStream__inherit__map"> <area shape="rect" href="classGio_1_1InputStream.html" title="Base class for implementing streaming input." alt="" coords="5,239,139,265"><area shape="rect" href="classGlib_1_1Object.html" title="Glib::Object" alt="" coords="29,161,123,188"><area shape="rect" href="classGlib_1_1ObjectBase.html" title="Glib::ObjectBase is a common base class for Objects and Interfaces." alt="" coords="76,84,201,111"><area shape="rect" href="classGlib_1_1Interface.html" title="Glib::Interface" alt="" coords="156,161,268,188"><area shape="rect" href="classsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="83,7,195,33"><area shape="rect" href="classGio_1_1Seekable.html" title="Stream seeking interface." alt="" coords="163,239,272,265"></map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> <p> <a href="classGio_1_1MemoryInputStream-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1MemoryInputStream.html#73bc118fab39a89f4d8e8434ff951ba8">~MemoryInputStream</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">GMemoryInputStream* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1MemoryInputStream.html#076380153e01599446bd991e0985db69">gobj</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#076380153e01599446bd991e0985db69"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">const <br> GMemoryInputStream* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1MemoryInputStream.html#f9ea44af840fc0d29d460498c8ce7d0e">gobj</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#f9ea44af840fc0d29d460498c8ce7d0e"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">GMemoryInputStream* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1MemoryInputStream.html#f63cbdce2036e383cb7e77a7df83651c">gobj_copy</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. <a href="#f63cbdce2036e383cb7e77a7df83651c"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1MemoryInputStream.html#483a0f4811f64a0a83204e22c227bf80">add_data</a> (const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/classstd_1_1basic__string.html">std::string</a>& data)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Appends to data that can be read from the input stream. <a href="#483a0f4811f64a0a83204e22c227bf80"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1MemoryInputStream.html#9700ab039b7d4654330f2786bd8786eb">add_data</a> (const void* data, gssize len)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Appends to data that can be read from the input stream. <a href="#9700ab039b7d4654330f2786bd8786eb"></a><br></td></tr> <tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><br> <<a class="el" href="classGio_1_1MemoryInputStream.html">MemoryInputStream</a>> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1MemoryInputStream.html#db6e55009e51b59fa19dcd69617cfda1">create</a> ()</td></tr> <tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1MemoryInputStream.html#3878e7ba1b947b72a8ab835e2ff24473">MemoryInputStream</a> ()</td></tr> <tr><td colspan="2"><br><h2>Related Functions</h2></td></tr> <tr><td colspan="2">(Note that these are not member functions.) <br><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><br> <<a class="el" href="classGio_1_1MemoryInputStream.html">Gio::MemoryInputStream</a>> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1MemoryInputStream.html#37bf0e5204e95253e4119ad954b3f7b9">wrap</a> (GMemoryInputStream* object, bool take_copy=false)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">A <a class="el" href="namespaceGlib.html#671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#37bf0e5204e95253e4119ad954b3f7b9"></a><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> <a class="el" href="classGio_1_1MemoryInputStream.html" title="MemoryInputStream implements InputStream for arbitrary memory chunks.">MemoryInputStream</a> implements <a class="el" href="classGio_1_1InputStream.html" title="Base class for implementing streaming input.">InputStream</a> for arbitrary memory chunks. <p> <dl compact><dt><b><a class="el" href="newin2p16s.html#_newin2p16s000037">Since glibmm 2.16:</a></b></dt><dd></dd></dl> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="73bc118fab39a89f4d8e8434ff951ba8"></a><!-- doxytag: member="Gio::MemoryInputStream::~MemoryInputStream" ref="73bc118fab39a89f4d8e8434ff951ba8" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual Gio::MemoryInputStream::~MemoryInputStream </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <a class="anchor" name="3878e7ba1b947b72a8ab835e2ff24473"></a><!-- doxytag: member="Gio::MemoryInputStream::MemoryInputStream" ref="3878e7ba1b947b72a8ab835e2ff24473" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Gio::MemoryInputStream::MemoryInputStream </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="076380153e01599446bd991e0985db69"></a><!-- doxytag: member="Gio::MemoryInputStream::gobj" ref="076380153e01599446bd991e0985db69" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GMemoryInputStream* Gio::MemoryInputStream::gobj </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Provides access to the underlying C GObject. <p> <p>Reimplemented from <a class="el" href="classGio_1_1InputStream.html#2ed1120b3d03a12086e7f0ed3946aba1">Gio::InputStream</a>.</p> </div> </div><p> <a class="anchor" name="f9ea44af840fc0d29d460498c8ce7d0e"></a><!-- doxytag: member="Gio::MemoryInputStream::gobj" ref="f9ea44af840fc0d29d460498c8ce7d0e" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const GMemoryInputStream* Gio::MemoryInputStream::gobj </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Provides access to the underlying C GObject. <p> <p>Reimplemented from <a class="el" href="classGio_1_1InputStream.html#1b0ef82ab81b3ded607584c7029fe1e9">Gio::InputStream</a>.</p> </div> </div><p> <a class="anchor" name="f63cbdce2036e383cb7e77a7df83651c"></a><!-- doxytag: member="Gio::MemoryInputStream::gobj_copy" ref="f63cbdce2036e383cb7e77a7df83651c" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GMemoryInputStream* Gio::MemoryInputStream::gobj_copy </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. <p> <p>Reimplemented from <a class="el" href="classGio_1_1InputStream.html#28a9394b07e9183c0c79798ea344c65c">Gio::InputStream</a>.</p> </div> </div><p> <a class="anchor" name="db6e55009e51b59fa19dcd69617cfda1"></a><!-- doxytag: member="Gio::MemoryInputStream::create" ref="db6e55009e51b59fa19dcd69617cfda1" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1MemoryInputStream.html">MemoryInputStream</a>> Gio::MemoryInputStream::create </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <a class="anchor" name="483a0f4811f64a0a83204e22c227bf80"></a><!-- doxytag: member="Gio::MemoryInputStream::add_data" ref="483a0f4811f64a0a83204e22c227bf80" args="(const std::string &data)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gio::MemoryInputStream::add_data </td> <td>(</td> <td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/classstd_1_1basic__string.html">std::string</a> & </td> <td class="paramname"> <em>data</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Appends to data that can be read from the input stream. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>data</em> </td><td>Input data. </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="9700ab039b7d4654330f2786bd8786eb"></a><!-- doxytag: member="Gio::MemoryInputStream::add_data" ref="9700ab039b7d4654330f2786bd8786eb" args="(const void *data, gssize len)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gio::MemoryInputStream::add_data </td> <td>(</td> <td class="paramtype">const void * </td> <td class="paramname"> <em>data</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">gssize </td> <td class="paramname"> <em>len</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Appends to data that can be read from the input stream. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>data</em> </td><td>Input data. </td></tr> <tr><td valign="top"></td><td valign="top"><em>len</em> </td><td>Length of the data, may be -1 if data is a null-terminated string. </td></tr> </table> </dl> </div> </div><p> <hr><h2>Friends And Related Function Documentation</h2> <a class="anchor" name="37bf0e5204e95253e4119ad954b3f7b9"></a><!-- doxytag: member="Gio::MemoryInputStream::wrap" ref="37bf0e5204e95253e4119ad954b3f7b9" args="(GMemoryInputStream *object, bool take_copy=false)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1MemoryInputStream.html">Gio::MemoryInputStream</a>> wrap </td> <td>(</td> <td class="paramtype">GMemoryInputStream * </td> <td class="paramname"> <em>object</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"> <em>take_copy</em> = <code>false</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [related]</code></td> </tr> </table> </div> <div class="memdoc"> <p> A <a class="el" href="namespaceGlib.html#671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>object</em> </td><td>The C instance. </td></tr> <tr><td valign="top"></td><td valign="top"><em>take_copy</em> </td><td>False if the result should take ownership of the C instance. True if it should take a new copy or ref. </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl> </div> </div><p> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="memoryinputstream_8h.html">memoryinputstream.h</a></ul> </div> <!-- end main content --> <hr><address><small> Generated for glibmm 2.4 by <a href="http://www.doxygen.org/index.html"> Doxygen</a> 1.5.3 © 1997-2001</small></address> </body> </html>