![]() |
![]() |
![]() |
Camel Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
struct CamelSeekableSubstream; CamelStream * camel_seekable_substream_new (CamelSeekableStream *parent_stream, off_t start, off_t end);
struct CamelSeekableSubstream { CamelSeekableStream parent_object; /* --**-- Private fields --**-- */ CamelSeekableStream *parent_stream; };
CamelStream * camel_seekable_substream_new (CamelSeekableStream *parent_stream, off_t start, off_t end);
Creates a new CamelSeekableSubstream that references the portion
of parent_stream
from inf_bound
to sup_bound
. (If sup_bound
is
CAMEL_STREAM_UNBOUND, it references to the end of stream, even if
the stream grows.)
While the substream is open, the caller cannot assume anything about
the current position of parent_stream
. After the substream has been
closed, parent_stream
will stabilize again.
|
a CamelSeekableStream object |
|
a lower bound |
|
an upper bound |
Returns : |
the substream |