## CamelNullOutputStream

CamelNullOutputStream — Null output stream

## Synopsis

    #include <camel/camel.h>

    struct              CamelNullOutputStream;
    GOutputStream *     camel_null_output_stream_new        (void);
    gsize               camel_null_output_stream_get_bytes_written
                                                            (CamelNullOutputStream *null_stream);

## Object Hierarchy

      GObject
       +----GOutputStream
             +----CamelNullOutputStream

## 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.

## Details

### struct CamelNullOutputStream

    struct CamelNullOutputStream;

### 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`.

`null_stream` : | a CamelNullOutputStream
Returns : | total byte count

Since 3.12

## See Also

GOutputStream