Top | ![]() |
![]() |
![]() |
![]() |
|
camel_stream_new () |
|
camel_stream_ref_base_stream () |
|
camel_stream_set_base_stream () |
|
camel_stream_read () |
|
camel_stream_write () |
|
camel_stream_flush () |
|
camel_stream_close () |
|
camel_stream_eos () |
|
camel_stream_write_string () |
|
camel_stream_write_to_stream () |
CamelStream * camel_stream_new ();
GIOStream *base_stream
Creates a base_stream
.
Since: 3.12
GIOStream * camel_stream_ref_base_stream ();
CamelStream *stream
Returns the stream
. This is only valid if stream
was
created with camel_stream_new()
. For all other NULL
The returned g_object_unref()
Since: 3.12
void camel_stream_set_base_stream (,
CamelStream *stream);
GIOStream *base_stream
Replaces the camel_stream_new()
with base_stream
.
The new base_stream
should wrap the original
Since: 3.12
gssize camel_stream_read (,
CamelStream *stream,
gchar *buffer,
gsize n,
GCancellable *cancellable);
GError **error
Attempts to read up to n
bytes from stream
into buffer
.
gssize camel_stream_write (,
CamelStream *streamconst
,gchar *buffer,
gsize n,
GCancellable *cancellable);
GError **error
Attempts to write up to n
bytes of buffer
into stream
.
gint camel_stream_flush (,
CamelStream *stream,
GCancellable *cancellable);
GError **error
Flushes any buffered data to the stream's backing store. Only meaningful for writable streams.
gint camel_stream_close (,
CamelStream *stream,
GCancellable *cancellable);
GError **error
Closes the stream.
gboolean camel_stream_eos ();
CamelStream *stream
Tests if there are bytes left to read on the stream
object.
gssize camel_stream_write_string (,
CamelStream *streamconst
,gchar *string,
GCancellable *cancellable);
GError **error
Writes the string to the stream.
gssize camel_stream_write_to_stream (,
CamelStream *stream,
CamelStream *output_stream,
GCancellable *cancellable);
GError **error
Write all of a stream (until eos) into another stream, in a blocking fashion.