| Top |
A GMimeStream which has no real backing storage at all. This
stream is useful for dry-runs and can also be useful for
determining statistics on source data which can be written to
streams but cannot be read as a stream itself (e.g. a GMimeObject
via g_mime_object_write_to_stream()).
GMimeStream *
g_mime_stream_null_new (void);
Creates a new GMimeStreamNull object.
gboolean
g_mime_stream_null_get_count_newlines (GMimeStreamNull *stream);
Gets whether or not the stream should keep track of the number of newlines encountered.
void g_mime_stream_null_set_count_newlines (GMimeStreamNull *stream,gboolean count);
Sets whether or not the stream should keep track of the number of newlines encountered.
struct GMimeStreamNull {
GMimeStream parent_object;
size_t written;
size_t newlines;
gboolean count_newlines;
};
A GMimeStream which has no backing store.
GMimeStream |
parent GMimeStream |
|
number of bytes written to this stream |
||
the number of newlines written to this stream |
||
gboolean |
whether or not the stream should count newlines |