GConverterInputstream

GConverterInputstream — Converter Input Stream

Synopsis

#include <gio/gio.h>

                    GConverterInputStream;
GInputStream *      g_converter_input_stream_new        (GInputStream *base_stream,
                                                         GConverter *converter);
GConverter *        g_converter_input_stream_get_converter
                                                        (GConverterInputStream *converter_stream);

Object Hierarchy

  GObject
   +----GInputStream
         +----GFilterInputStream
               +----GConverterInputStream

Properties

  "converter"                GConverter*           : Read / Write / Construct Only

Description

Converter input stream implements GInputStream and allows conversion of data of various types during reading.

Details

GConverterInputStream

typedef struct _GConverterInputStream GConverterInputStream;

An implementation of GFilterInputStream that allows data conversion.


g_converter_input_stream_new ()

GInputStream *      g_converter_input_stream_new        (GInputStream *base_stream,
                                                         GConverter *converter);

Creates a new converter input stream for the base_stream.

base_stream :

a GInputStream

converter :

a GConverter

Returns :

a new GInputStream.

g_converter_input_stream_get_converter ()

GConverter *        g_converter_input_stream_get_converter
                                                        (GConverterInputStream *converter_stream);

Gets the GConverter that is used by converter_stream.

converter_stream :

a GConverterInputStream

Returns :

the converter of the converter input stream. [transfer none]

Since 2.24

Property Details

The "converter" property

  "converter"                GConverter*           : Read / Write / Construct Only

The converter object.

See Also

GInputStream, GConverter