<refentry id="camel-CamelSeekableSubstream">
<refmeta>
<refentrytitle role="top_of_page" id="camel-CamelSeekableSubstream.top_of_page">CamelSeekableSubstream</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>CAMEL Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>CamelSeekableSubstream</refname>
<refpurpose></refpurpose>
<!--[<xref linkend="desc" endterm="desc.title"/>]-->
</refnamediv>

<refsynopsisdiv id="camel-CamelSeekableSubstream.synopsis" role="synopsis">
<title role="synopsis.title">Synopsis</title>

<synopsis>
struct              <link linkend="CamelSeekableSubstream">CamelSeekableSubstream</link>;
<link linkend="CamelStream">CamelStream</link>*        <link linkend="camel-seekable-substream-new">camel_seekable_substream_new</link>        (<link linkend="CamelSeekableStream">CamelSeekableStream</link> *parent_stream,
                                                         <link linkend="off-t">off_t</link> start,
                                                         <link linkend="off-t">off_t</link> end);
</synopsis>
</refsynopsisdiv>









<refsect1 id="camel-CamelSeekableSubstream.description" role="desc">
<title role="desc.title">Description</title>
<para>

</para>
</refsect1>

<refsect1 id="camel-CamelSeekableSubstream.details" role="details">
<title role="details.title">Details</title>
<refsect2 id="CamelSeekableSubstream" role="struct">
<title>struct CamelSeekableSubstream</title>
<indexterm zone="CamelSeekableSubstream"><primary>CamelSeekableSubstream</primary></indexterm><programlisting>struct CamelSeekableSubstream {
	CamelSeekableStream parent_object;

	/*  --**-- Private fields --**--  */
	CamelSeekableStream *parent_stream;
};
</programlisting>
<para>

</para></refsect2>
<refsect2 id="camel-seekable-substream-new" role="function">
<title>camel_seekable_substream_new ()</title>
<indexterm zone="camel-seekable-substream-new"><primary>camel_seekable_substream_new</primary></indexterm><programlisting><link linkend="CamelStream">CamelStream</link>*        camel_seekable_substream_new        (<link linkend="CamelSeekableStream">CamelSeekableStream</link> *parent_stream,
                                                         <link linkend="off-t">off_t</link> start,
                                                         <link linkend="off-t">off_t</link> end);</programlisting>
<para>
Creates a new CamelSeekableSubstream that references the portion
of <parameter>parent_stream</parameter> from <parameter>inf_bound</parameter> to <parameter>sup_bound</parameter>. (If <parameter>sup_bound</parameter> is
<link linkend="CAMEL-STREAM-UNBOUND:CAPS"><type>CAMEL_STREAM_UNBOUND</type></link>, it references to the end of stream, even if
the stream grows.)
</para>
<para>
While the substream is open, the caller cannot assume anything about
the current position of <parameter>parent_stream</parameter>. After the substream has been
closed, <parameter>parent_stream</parameter> will stabilize again.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>parent_stream</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="CamelSeekableStream"><type>CamelSeekableStream</type></link> object
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>start</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>end</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the substream
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>




</refentry>
