CamelNullOutputStream
CamelNullOutputStream — Null output stream
|
|
Includes
#include <camel/camel.h>
Description
CamelNullOutputStream is analogous to writing to /dev/null, except it
counts the total number of bytes written to it. This is primarily useful
for determining the final size of some outgoing data, especially if using
filters on the output stream.
Functions
camel_null_output_stream_new ()
GOutputStream *
camel_null_output_stream_new (void);
Creates a new "null" output stream.
Returns
a new GOutputStream
Since: 3.12
camel_null_output_stream_get_bytes_written ()
gsize
camel_null_output_stream_get_bytes_written
(CamelNullOutputStream *null_stream);
Gets the total number of bytes written to null_stream
.
Since: 3.12