Top | ![]() |
![]() |
![]() |
![]() |
gssize | camel_stream_read () |
gssize | camel_stream_write () |
gint | camel_stream_flush () |
gint | camel_stream_close () |
gboolean | camel_stream_eos () |
gssize | camel_stream_write_string () |
gssize | camel_stream_write_to_stream () |
GObject ╰── CamelObject ╰── CamelStream ├── CamelIMAPXStream ├── CamelStreamBuffer ├── CamelStreamFilter ├── CamelStreamFs ├── CamelStreamMem ├── CamelStreamNull ├── CamelStreamProcess ├── CamelStreamVFS ╰── CamelTcpStream
gssize camel_stream_read (CamelStream *stream
,gchar *buffer
,gsize n
,GCancellable *cancellable
,GError **error
);
Attempts to read up to len
bytes from stream
into buf
.
stream |
a CamelStream object. |
|
buffer |
output buffer |
|
n |
max number of bytes to read. |
|
cancellable |
optional GCancellable object, or |
|
error |
gssize camel_stream_write (CamelStream *stream
,const gchar *buffer
,gsize n
,GCancellable *cancellable
,GError **error
);
Attempts to write up to n
bytes of buffer
into stream
.
stream |
a CamelStream object |
|
buffer |
buffer to write. |
|
n |
number of bytes to write |
|
cancellable |
optional GCancellable object, or |
|
error |
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 *stream
,const 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.
stream |
source CamelStream object |
|
output_stream |
destination CamelStream object |
|
cancellable |
optional GCancellable object, or |
|
error |