Blame docs/reference/gio/html/GDataInputStream.html

Packit ae235b
Packit ae235b
<html>
Packit ae235b
<head>
Packit ae235b
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Packit ae235b
<title>GDataInputStream: GIO Reference Manual</title>
Packit ae235b
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
Packit ae235b
<link rel="home" href="index.html" title="GIO Reference Manual">
Packit ae235b
<link rel="up" href="streaming.html" title="Streaming I/O">
Packit ae235b
<link rel="prev" href="GBufferedOutputStream.html" title="GBufferedOutputStream">
Packit ae235b
<link rel="next" href="GDataOutputStream.html" title="GDataOutputStream">
Packit ae235b
<meta name="generator" content="GTK-Doc V1.27 (XML mode)">
Packit ae235b
<link rel="stylesheet" href="style.css" type="text/css">
Packit ae235b
</head>
Packit ae235b
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
Packit ae235b
Packit ae235b
Packit ae235b
Top  | 
Packit ae235b
                  Description  | 
Packit ae235b
                  Object Hierarchy  | 
Packit ae235b
                  Implemented Interfaces  | 
Packit ae235b
                  Properties
Packit ae235b
Packit ae235b
Home
Packit ae235b
Up
Packit ae235b
Prev
Packit ae235b
Next
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

GDataInputStream

Packit ae235b

GDataInputStream — Data Input Stream

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Functions

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
GDataInputStream *
Packit ae235b
Packit ae235b
Packit ae235b
g_data_input_stream_new ()
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
void
Packit ae235b
Packit ae235b
Packit ae235b
g_data_input_stream_set_byte_order ()
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
GDataStreamByteOrder
Packit ae235b
Packit ae235b
Packit ae235b
g_data_input_stream_get_byte_order ()
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
void
Packit ae235b
Packit ae235b
Packit ae235b
g_data_input_stream_set_newline_type ()
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
GDataStreamNewlineType
Packit ae235b
Packit ae235b
Packit ae235b
g_data_input_stream_get_newline_type ()
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
guchar
Packit ae235b
Packit ae235b
Packit ae235b
g_data_input_stream_read_byte ()
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
gint16
Packit ae235b
Packit ae235b
Packit ae235b
g_data_input_stream_read_int16 ()
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
guint16
Packit ae235b
Packit ae235b
Packit ae235b
g_data_input_stream_read_uint16 ()
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
gint32
Packit ae235b
Packit ae235b
Packit ae235b
g_data_input_stream_read_int32 ()
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
guint32
Packit ae235b
Packit ae235b
Packit ae235b
g_data_input_stream_read_uint32 ()
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
gint64
Packit ae235b
Packit ae235b
Packit ae235b
g_data_input_stream_read_int64 ()
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
guint64
Packit ae235b
Packit ae235b
Packit ae235b
g_data_input_stream_read_uint64 ()
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
char *
Packit ae235b
Packit ae235b
Packit ae235b
g_data_input_stream_read_line ()
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
char *
Packit ae235b
Packit ae235b
Packit ae235b
g_data_input_stream_read_line_utf8 ()
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
void
Packit ae235b
Packit ae235b
Packit ae235b
g_data_input_stream_read_line_async ()
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
char *
Packit ae235b
Packit ae235b
Packit ae235b
g_data_input_stream_read_line_finish ()
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
char *
Packit ae235b
Packit ae235b
Packit ae235b
g_data_input_stream_read_line_finish_utf8 ()
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
char *
Packit ae235b
Packit ae235b
Packit ae235b
g_data_input_stream_read_upto ()
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
void
Packit ae235b
Packit ae235b
Packit ae235b
g_data_input_stream_read_upto_async ()
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
char *
Packit ae235b
Packit ae235b
Packit ae235b
g_data_input_stream_read_upto_finish ()
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
char *
Packit ae235b
Packit ae235b
Packit ae235b
g_data_input_stream_read_until ()
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
void
Packit ae235b
Packit ae235b
Packit ae235b
g_data_input_stream_read_until_async ()
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
char *
Packit ae235b
Packit ae235b
Packit ae235b
g_data_input_stream_read_until_finish ()
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Properties

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
GDataStreamByteOrder
Packit ae235b
byte-order
Packit ae235b
Read / Write
Packit ae235b
Packit ae235b
Packit ae235b
GDataStreamNewlineType
Packit ae235b
newline-type
Packit ae235b
Read / Write
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Types and Values

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
 
Packit ae235b
GDataInputStream
Packit ae235b
Packit ae235b
Packit ae235b
enum
Packit ae235b
GDataStreamByteOrder
Packit ae235b
Packit ae235b
Packit ae235b
enum
Packit ae235b
GDataStreamNewlineType
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Object Hierarchy

Packit ae235b
    GObject
Packit ae235b
    ╰── GInputStream
Packit ae235b
        ╰── GFilterInputStream
Packit ae235b
            ╰── GBufferedInputStream
Packit ae235b
                ╰── GDataInputStream
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Implemented Interfaces

Packit ae235b

Packit ae235b
GDataInputStream implements
Packit ae235b
 GSeekable.

Packit ae235b
Packit ae235b
Packit ae235b

Includes

Packit ae235b
#include <gio/gio.h>
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Description

Packit ae235b

Data input stream implements GInputStream and includes functions for

Packit ae235b
reading structured data directly from a binary input stream.

Packit ae235b
Packit ae235b
Packit ae235b

Functions

Packit ae235b
Packit ae235b

g_data_input_stream_new ()

Packit ae235b
GDataInputStream *
Packit ae235b
g_data_input_stream_new (GInputStream *base_stream);
Packit ae235b

Creates a new data input stream for the base_stream

Packit ae235b
.

Packit ae235b
Packit ae235b

Parameters

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

base_stream

Packit ae235b

a GInputStream.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Returns

Packit ae235b

a new GDataInputStream.

Packit ae235b
Packit ae235b
Packit ae235b

Packit ae235b
Packit ae235b

g_data_input_stream_set_byte_order ()

Packit ae235b
void
Packit ae235b
g_data_input_stream_set_byte_order (GDataInputStream *stream,
Packit ae235b
                                    GDataStreamByteOrder order);
Packit ae235b

This function sets the byte order for the given stream

Packit ae235b
. All subsequent
Packit ae235b
reads from the stream
Packit ae235b
 will be read in the given order
Packit ae235b
.

Packit ae235b
Packit ae235b

Parameters

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

stream

Packit ae235b

a given GDataInputStream.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

order

Packit ae235b

a GDataStreamByteOrder to set.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Packit ae235b
Packit ae235b

g_data_input_stream_get_byte_order ()

Packit ae235b
GDataStreamByteOrder
Packit ae235b
g_data_input_stream_get_byte_order (GDataInputStream *stream);
Packit ae235b

Gets the byte order for the data input stream.

Packit ae235b
Packit ae235b

Parameters

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

stream

Packit ae235b

a given GDataInputStream.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Returns

Packit ae235b

the stream

Packit ae235b
's current GDataStreamByteOrder. 

Packit ae235b
Packit ae235b
Packit ae235b

Packit ae235b
Packit ae235b

g_data_input_stream_set_newline_type ()

Packit ae235b
void
Packit ae235b
g_data_input_stream_set_newline_type (GDataInputStream *stream,
Packit ae235b
                                      GDataStreamNewlineType type);
Packit ae235b

Sets the newline type for the stream

Packit ae235b
.

Packit ae235b

Note that using G_DATA_STREAM_NEWLINE_TYPE_ANY is slightly unsafe. If a read

Packit ae235b
chunk ends in "CR" we must read an additional byte to know if this is "CR" or
Packit ae235b
"CR LF", and this might block if there is no more data available.

Packit ae235b
Packit ae235b

Parameters

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

stream

Packit ae235b

a GDataInputStream.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

type

Packit ae235b

the type of new line return as GDataStreamNewlineType.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Packit ae235b
Packit ae235b

g_data_input_stream_get_newline_type ()

Packit ae235b
GDataStreamNewlineType
Packit ae235b
g_data_input_stream_get_newline_type (GDataInputStream *stream);
Packit ae235b

Gets the current newline type for the stream

Packit ae235b
.

Packit ae235b
Packit ae235b

Parameters

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

stream

Packit ae235b

a given GDataInputStream.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Returns

Packit ae235b

GDataStreamNewlineType for the given stream

Packit ae235b
.

Packit ae235b
Packit ae235b
Packit ae235b

Packit ae235b
Packit ae235b

g_data_input_stream_read_byte ()

Packit ae235b
guchar
Packit ae235b
g_data_input_stream_read_byte (GDataInputStream *stream,
Packit ae235b
                               GCancellable *cancellable,
Packit ae235b
                               GError **error);
Packit ae235b

Reads an unsigned 8-bit/1-byte value from stream

Packit ae235b
.

Packit ae235b
Packit ae235b

Parameters

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

stream

Packit ae235b

a given GDataInputStream.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

cancellable

Packit ae235b

optional GCancellable object, NULL to ignore.

Packit ae235b
[nullable]
Packit ae235b
Packit ae235b
Packit ae235b

error

Packit ae235b

GError for error reporting.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Returns

Packit ae235b

an unsigned 8-bit/1-byte value read from the stream

Packit ae235b
or 0
Packit ae235b
if an error occurred.

Packit ae235b
Packit ae235b
Packit ae235b

Packit ae235b
Packit ae235b

g_data_input_stream_read_int16 ()

Packit ae235b
gint16
Packit ae235b
g_data_input_stream_read_int16 (GDataInputStream *stream,
Packit ae235b
                                GCancellable *cancellable,
Packit ae235b
                                GError **error);
Packit ae235b

Reads a 16-bit/2-byte value from stream

Packit ae235b
.

Packit ae235b

In order to get the correct byte order for this read operation,

Packit ae235b
see g_data_input_stream_get_byte_order() and g_data_input_stream_set_byte_order().

Packit ae235b
Packit ae235b

Parameters

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

stream

Packit ae235b

a given GDataInputStream.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

cancellable

Packit ae235b

optional GCancellable object, NULL to ignore.

Packit ae235b
[nullable]
Packit ae235b
Packit ae235b
Packit ae235b

error

Packit ae235b

GError for error reporting.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Returns

Packit ae235b

a signed 16-bit/2-byte value read from stream

Packit ae235b
or 0 if
Packit ae235b
an error occurred.

Packit ae235b
Packit ae235b
Packit ae235b

Packit ae235b
Packit ae235b

g_data_input_stream_read_uint16 ()

Packit ae235b
guint16
Packit ae235b
g_data_input_stream_read_uint16 (GDataInputStream *stream,
Packit ae235b
                                 GCancellable *cancellable,
Packit ae235b
                                 GError **error);
Packit ae235b

Reads an unsigned 16-bit/2-byte value from stream

Packit ae235b
.

Packit ae235b

In order to get the correct byte order for this read operation,

Packit ae235b
see g_data_input_stream_get_byte_order() and g_data_input_stream_set_byte_order().

Packit ae235b
Packit ae235b

Parameters

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

stream

Packit ae235b

a given GDataInputStream.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

cancellable

Packit ae235b

optional GCancellable object, NULL to ignore.

Packit ae235b
[nullable]
Packit ae235b
Packit ae235b
Packit ae235b

error

Packit ae235b

GError for error reporting.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Returns

Packit ae235b

an unsigned 16-bit/2-byte value read from the stream

Packit ae235b
or 0 if
Packit ae235b
an error occurred. 

Packit ae235b
Packit ae235b
Packit ae235b

Packit ae235b
Packit ae235b

g_data_input_stream_read_int32 ()

Packit ae235b
gint32
Packit ae235b
g_data_input_stream_read_int32 (GDataInputStream *stream,
Packit ae235b
                                GCancellable *cancellable,
Packit ae235b
                                GError **error);
Packit ae235b

Reads a signed 32-bit/4-byte value from stream

Packit ae235b
.

Packit ae235b

In order to get the correct byte order for this read operation,

Packit ae235b
see g_data_input_stream_get_byte_order() and g_data_input_stream_set_byte_order().

Packit ae235b

If cancellable

Packit ae235b
 is not NULL, then the operation can be cancelled by
Packit ae235b
triggering the cancellable object from another thread. If the operation
Packit ae235b
was cancelled, the error G_IO_ERROR_CANCELLED will be returned.

Packit ae235b
Packit ae235b

Parameters

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

stream

Packit ae235b

a given GDataInputStream.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

cancellable

Packit ae235b

optional GCancellable object, NULL to ignore.

Packit ae235b
[nullable]
Packit ae235b
Packit ae235b
Packit ae235b

error

Packit ae235b

GError for error reporting.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Returns

Packit ae235b

a signed 32-bit/4-byte value read from the stream

Packit ae235b
or 0 if
Packit ae235b
an error occurred. 

Packit ae235b
Packit ae235b
Packit ae235b

Packit ae235b
Packit ae235b

g_data_input_stream_read_uint32 ()

Packit ae235b
guint32
Packit ae235b
g_data_input_stream_read_uint32 (GDataInputStream *stream,
Packit ae235b
                                 GCancellable *cancellable,
Packit ae235b
                                 GError **error);
Packit ae235b

Reads an unsigned 32-bit/4-byte value from stream

Packit ae235b
.

Packit ae235b

In order to get the correct byte order for this read operation,

Packit ae235b
see g_data_input_stream_get_byte_order() and g_data_input_stream_set_byte_order().

Packit ae235b

If cancellable

Packit ae235b
 is not NULL, then the operation can be cancelled by
Packit ae235b
triggering the cancellable object from another thread. If the operation
Packit ae235b
was cancelled, the error G_IO_ERROR_CANCELLED will be returned.

Packit ae235b
Packit ae235b

Parameters

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

stream

Packit ae235b

a given GDataInputStream.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

cancellable

Packit ae235b

optional GCancellable object, NULL to ignore.

Packit ae235b
[nullable]
Packit ae235b
Packit ae235b
Packit ae235b

error

Packit ae235b

GError for error reporting.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Returns

Packit ae235b

an unsigned 32-bit/4-byte value read from the stream

Packit ae235b
or 0 if
Packit ae235b
an error occurred. 

Packit ae235b
Packit ae235b
Packit ae235b

Packit ae235b
Packit ae235b

g_data_input_stream_read_int64 ()

Packit ae235b
gint64
Packit ae235b
g_data_input_stream_read_int64 (GDataInputStream *stream,
Packit ae235b
                                GCancellable *cancellable,
Packit ae235b
                                GError **error);
Packit ae235b

Reads a 64-bit/8-byte value from stream

Packit ae235b
.

Packit ae235b

In order to get the correct byte order for this read operation,

Packit ae235b
see g_data_input_stream_get_byte_order() and g_data_input_stream_set_byte_order().

Packit ae235b

If cancellable

Packit ae235b
 is not NULL, then the operation can be cancelled by
Packit ae235b
triggering the cancellable object from another thread. If the operation
Packit ae235b
was cancelled, the error G_IO_ERROR_CANCELLED will be returned.

Packit ae235b
Packit ae235b

Parameters

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

stream

Packit ae235b

a given GDataInputStream.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

cancellable

Packit ae235b

optional GCancellable object, NULL to ignore.

Packit ae235b
[nullable]
Packit ae235b
Packit ae235b
Packit ae235b

error

Packit ae235b

GError for error reporting.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Returns

Packit ae235b

a signed 64-bit/8-byte value read from stream

Packit ae235b
or 0 if
Packit ae235b
an error occurred.  

Packit ae235b
Packit ae235b
Packit ae235b

Packit ae235b
Packit ae235b

g_data_input_stream_read_uint64 ()

Packit ae235b
guint64
Packit ae235b
g_data_input_stream_read_uint64 (GDataInputStream *stream,
Packit ae235b
                                 GCancellable *cancellable,
Packit ae235b
                                 GError **error);
Packit ae235b

Reads an unsigned 64-bit/8-byte value from stream

Packit ae235b
.

Packit ae235b

In order to get the correct byte order for this read operation,

Packit ae235b
see g_data_input_stream_get_byte_order().

Packit ae235b

If cancellable

Packit ae235b
 is not NULL, then the operation can be cancelled by
Packit ae235b
triggering the cancellable object from another thread. If the operation
Packit ae235b
was cancelled, the error G_IO_ERROR_CANCELLED will be returned.

Packit ae235b
Packit ae235b

Parameters

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

stream

Packit ae235b

a given GDataInputStream.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

cancellable

Packit ae235b

optional GCancellable object, NULL to ignore.

Packit ae235b
[nullable]
Packit ae235b
Packit ae235b
Packit ae235b

error

Packit ae235b

GError for error reporting.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Returns

Packit ae235b

an unsigned 64-bit/8-byte read from stream

Packit ae235b
or 0 if
Packit ae235b
an error occurred. 

Packit ae235b
Packit ae235b
Packit ae235b

Packit ae235b
Packit ae235b

g_data_input_stream_read_line ()

Packit ae235b
char *
Packit ae235b
g_data_input_stream_read_line (GDataInputStream *stream,
Packit ae235b
                               gsize *length,
Packit ae235b
                               GCancellable *cancellable,
Packit ae235b
                               GError **error);
Packit ae235b

Reads a line from the data input stream. Note that no encoding

Packit ae235b
checks or conversion is performed; the input is not guaranteed to
Packit ae235b
be UTF-8, and may in fact have embedded NUL characters.

Packit ae235b

If cancellable

Packit ae235b
 is not NULL, then the operation can be cancelled by
Packit ae235b
triggering the cancellable object from another thread. If the operation
Packit ae235b
was cancelled, the error G_IO_ERROR_CANCELLED will be returned.

Packit ae235b
Packit ae235b

Parameters

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

stream

Packit ae235b

a given GDataInputStream.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

length

Packit ae235b

a gsize to get the length of the data read in.

Packit ae235b
[out][optional]
Packit ae235b
Packit ae235b
Packit ae235b

cancellable

Packit ae235b

optional GCancellable object, NULL to ignore.

Packit ae235b
[nullable]
Packit ae235b
Packit ae235b
Packit ae235b

error

Packit ae235b

GError for error reporting.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Returns

Packit ae235b

a NUL terminated byte array with the line that was read in

Packit ae235b
(without the newlines).  Set length
Packit ae235b
to a gsize to get the length
Packit ae235b
of the read line.  On an error, it will return NULL and error
Packit ae235b
will be set. If there's no content to read, it will still return
Packit ae235b
NULL, but error
Packit ae235b
won't be set. 

Packit ae235b

[nullable][transfer full][array zero-terminated=1][element-type guint8]

Packit ae235b
Packit ae235b
Packit ae235b

Packit ae235b
Packit ae235b

g_data_input_stream_read_line_utf8 ()

Packit ae235b
char *
Packit ae235b
g_data_input_stream_read_line_utf8 (GDataInputStream *stream,
Packit ae235b
                                    gsize *length,
Packit ae235b
                                    GCancellable *cancellable,
Packit ae235b
                                    GError **error);
Packit ae235b

Reads a UTF-8 encoded line from the data input stream.

Packit ae235b

If cancellable

Packit ae235b
 is not NULL, then the operation can be cancelled by
Packit ae235b
triggering the cancellable object from another thread. If the operation
Packit ae235b
was cancelled, the error G_IO_ERROR_CANCELLED will be returned.

Packit ae235b
Packit ae235b

Parameters

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

stream

Packit ae235b

a given GDataInputStream.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

length

Packit ae235b

a gsize to get the length of the data read in.

Packit ae235b
[out][optional]
Packit ae235b
Packit ae235b
Packit ae235b

cancellable

Packit ae235b

optional GCancellable object, NULL to ignore.

Packit ae235b
[nullable]
Packit ae235b
Packit ae235b
Packit ae235b

error

Packit ae235b

GError for error reporting.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Returns

Packit ae235b

a NUL terminated UTF-8 string

Packit ae235b
with the line that was read in (without the newlines).  Set
Packit ae235b
length
Packit ae235b
to a gsize to get the length of the read line.  On an
Packit ae235b
error, it will return NULL and error
Packit ae235b
will be set.  For UTF-8
Packit ae235b
conversion errors, the set error domain is G_CONVERT_ERROR.  If
Packit ae235b
there's no content to read, it will still return NULL, but error
Packit ae235b
won't be set. 

Packit ae235b

[nullable][transfer full]

Packit ae235b
Packit ae235b

Since: 2.30

Packit ae235b
Packit ae235b

Packit ae235b
Packit ae235b

g_data_input_stream_read_line_async ()

Packit ae235b
void
Packit ae235b
g_data_input_stream_read_line_async (GDataInputStream *stream,
Packit ae235b
                                     gint io_priority,
Packit ae235b
                                     GCancellable *cancellable,
Packit ae235b
                                     GAsyncReadyCallback callback,
Packit ae235b
                                     gpointer user_data);
Packit ae235b

The asynchronous version of g_data_input_stream_read_line(). It is

Packit ae235b
an error to have two outstanding calls to this function.

Packit ae235b

When the operation is finished, callback

Packit ae235b
 will be called. You
Packit ae235b
can then call g_data_input_stream_read_line_finish() to get
Packit ae235b
the result of the operation.

Packit ae235b
Packit ae235b

Parameters

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

stream

Packit ae235b

a given GDataInputStream.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

io_priority

Packit ae235b

the I/O priority of the request

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

cancellable

Packit ae235b

optional GCancellable object, NULL to ignore.

Packit ae235b
[nullable]
Packit ae235b
Packit ae235b
Packit ae235b

callback

Packit ae235b

callback to call when the request is satisfied.

Packit ae235b
[scope async]
Packit ae235b
Packit ae235b
Packit ae235b

user_data

Packit ae235b

the data to pass to callback function.

Packit ae235b
[closure]
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Since: 2.20

Packit ae235b
Packit ae235b

Packit ae235b
Packit ae235b

g_data_input_stream_read_line_finish ()

Packit ae235b
char *
Packit ae235b
g_data_input_stream_read_line_finish (GDataInputStream *stream,
Packit ae235b
                                      GAsyncResult *result,
Packit ae235b
                                      gsize *length,
Packit ae235b
                                      GError **error);
Packit ae235b

Finish an asynchronous call started by

Packit ae235b
g_data_input_stream_read_line_async().  Note the warning about
Packit ae235b
string encoding in g_data_input_stream_read_line() applies here as
Packit ae235b
well.

Packit ae235b
Packit ae235b

Parameters

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

stream

Packit ae235b

a given GDataInputStream.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

result

Packit ae235b

the GAsyncResult that was provided to the callback.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

length

Packit ae235b

a gsize to get the length of the data read in.

Packit ae235b
[out][optional]
Packit ae235b
Packit ae235b
Packit ae235b

error

Packit ae235b

GError for error reporting.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Returns

Packit ae235b

a NUL-terminated byte array with the line that was read in

Packit ae235b
(without the newlines).  Set length
Packit ae235b
to a gsize to get the length
Packit ae235b
of the read line.  On an error, it will return NULL and error
Packit ae235b
will be set. If there's no content to read, it will still return
Packit ae235b
NULL, but error
Packit ae235b
won't be set. 

Packit ae235b

[nullable][transfer full][array zero-terminated=1][element-type guint8]

Packit ae235b
Packit ae235b

Since: 2.20

Packit ae235b
Packit ae235b

Packit ae235b
Packit ae235b

g_data_input_stream_read_line_finish_utf8 ()

Packit ae235b
char *
Packit ae235b
g_data_input_stream_read_line_finish_utf8
Packit ae235b
                               (GDataInputStream *stream,
Packit ae235b
                                GAsyncResult *result,
Packit ae235b
                                gsize *length,
Packit ae235b
                                GError **error);
Packit ae235b

Finish an asynchronous call started by

Packit ae235b
g_data_input_stream_read_line_async().

Packit ae235b
Packit ae235b

Parameters

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

stream

Packit ae235b

a given GDataInputStream.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

result

Packit ae235b

the GAsyncResult that was provided to the callback.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

length

Packit ae235b

a gsize to get the length of the data read in.

Packit ae235b
[out][optional]
Packit ae235b
Packit ae235b
Packit ae235b

error

Packit ae235b

GError for error reporting.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Returns

Packit ae235b

a string with the line that

Packit ae235b
was read in (without the newlines).  Set length
Packit ae235b
to a gsize to
Packit ae235b
get the length of the read line.  On an error, it will return
Packit ae235b
NULL and error
Packit ae235b
will be set. For UTF-8 conversion errors, the set
Packit ae235b
error domain is G_CONVERT_ERROR.  If there's no content to read,
Packit ae235b
it will still return NULL, but error
Packit ae235b
won't be set. 

Packit ae235b

[nullable][transfer full]

Packit ae235b
Packit ae235b

Since: 2.30

Packit ae235b
Packit ae235b

Packit ae235b
Packit ae235b

g_data_input_stream_read_upto ()

Packit ae235b
char *
Packit ae235b
g_data_input_stream_read_upto (GDataInputStream *stream,
Packit ae235b
                               const gchar *stop_chars,
Packit ae235b
                               gssize stop_chars_len,
Packit ae235b
                               gsize *length,
Packit ae235b
                               GCancellable *cancellable,
Packit ae235b
                               GError **error);
Packit ae235b

Reads a string from the data input stream, up to the first

Packit ae235b
occurrence of any of the stop characters.

Packit ae235b

In contrast to g_data_input_stream_read_until(), this function

Packit ae235b
does not consume the stop character. You have to use
Packit ae235b
g_data_input_stream_read_byte() to get it before calling
Packit ae235b
g_data_input_stream_read_upto() again.

Packit ae235b

Note that stop_chars

Packit ae235b
 may contain '\0' if stop_chars_len
Packit ae235b
 is
Packit ae235b
specified.

Packit ae235b

The returned string will always be nul-terminated on success.

Packit ae235b
Packit ae235b

Parameters

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

stream

Packit ae235b

a GDataInputStream

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

stop_chars

Packit ae235b

characters to terminate the read

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

stop_chars_len

Packit ae235b

length of stop_chars

Packit ae235b
. May be -1 if stop_chars
Packit ae235b
is
Packit ae235b
nul-terminated

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

length

Packit ae235b

a gsize to get the length of the data read in.

Packit ae235b
[out][optional]
Packit ae235b
Packit ae235b
Packit ae235b

cancellable

Packit ae235b

optional GCancellable object, NULL to ignore.

Packit ae235b
[nullable]
Packit ae235b
Packit ae235b
Packit ae235b

error

Packit ae235b

GError for error reporting

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Returns

Packit ae235b

a string with the data that was read

Packit ae235b
before encountering any of the stop characters. Set length
Packit ae235b
to
Packit ae235b
a gsize to get the length of the string. This function will
Packit ae235b
return NULL on an error. 

Packit ae235b

[transfer full]

Packit ae235b
Packit ae235b

Since: 2.26

Packit ae235b
Packit ae235b

Packit ae235b
Packit ae235b

g_data_input_stream_read_upto_async ()

Packit ae235b
void
Packit ae235b
g_data_input_stream_read_upto_async (GDataInputStream *stream,
Packit ae235b
                                     const gchar *stop_chars,
Packit ae235b
                                     gssize stop_chars_len,
Packit ae235b
                                     gint io_priority,
Packit ae235b
                                     GCancellable *cancellable,
Packit ae235b
                                     GAsyncReadyCallback callback,
Packit ae235b
                                     gpointer user_data);
Packit ae235b

The asynchronous version of g_data_input_stream_read_upto().

Packit ae235b
It is an error to have two outstanding calls to this function.

Packit ae235b

In contrast to g_data_input_stream_read_until(), this function

Packit ae235b
does not consume the stop character. You have to use
Packit ae235b
g_data_input_stream_read_byte() to get it before calling
Packit ae235b
g_data_input_stream_read_upto() again.

Packit ae235b

Note that stop_chars

Packit ae235b
 may contain '\0' if stop_chars_len
Packit ae235b
 is
Packit ae235b
specified.

Packit ae235b

When the operation is finished, callback

Packit ae235b
 will be called. You
Packit ae235b
can then call g_data_input_stream_read_upto_finish() to get
Packit ae235b
the result of the operation.

Packit ae235b
Packit ae235b

Parameters

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

stream

Packit ae235b

a GDataInputStream

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

stop_chars

Packit ae235b

characters to terminate the read

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

stop_chars_len

Packit ae235b

length of stop_chars

Packit ae235b
. May be -1 if stop_chars
Packit ae235b
is
Packit ae235b
nul-terminated

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

io_priority

Packit ae235b

the I/O priority of the request

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

cancellable

Packit ae235b

optional GCancellable object, NULL to ignore.

Packit ae235b
[nullable]
Packit ae235b
Packit ae235b
Packit ae235b

callback

Packit ae235b

callback to call when the request is satisfied.

Packit ae235b
[scope async]
Packit ae235b
Packit ae235b
Packit ae235b

user_data

Packit ae235b

the data to pass to callback function.

Packit ae235b
[closure]
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Since: 2.26

Packit ae235b
Packit ae235b

Packit ae235b
Packit ae235b

g_data_input_stream_read_upto_finish ()

Packit ae235b
char *
Packit ae235b
g_data_input_stream_read_upto_finish (GDataInputStream *stream,
Packit ae235b
                                      GAsyncResult *result,
Packit ae235b
                                      gsize *length,
Packit ae235b
                                      GError **error);
Packit ae235b

Finish an asynchronous call started by

Packit ae235b
g_data_input_stream_read_upto_async().

Packit ae235b

Note that this function does not consume the stop character. You

Packit ae235b
have to use g_data_input_stream_read_byte() to get it before calling
Packit ae235b
g_data_input_stream_read_upto_async() again.

Packit ae235b

The returned string will always be nul-terminated on success.

Packit ae235b
Packit ae235b

Parameters

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

stream

Packit ae235b

a GDataInputStream

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

result

Packit ae235b

the GAsyncResult that was provided to the callback

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

length

Packit ae235b

a gsize to get the length of the data read in.

Packit ae235b
[out][optional]
Packit ae235b
Packit ae235b
Packit ae235b

error

Packit ae235b

GError for error reporting

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Returns

Packit ae235b

a string with the data that was read

Packit ae235b
before encountering any of the stop characters. Set length
Packit ae235b
to
Packit ae235b
a gsize to get the length of the string. This function will
Packit ae235b
return NULL on an error. 

Packit ae235b

[transfer full]

Packit ae235b
Packit ae235b

Since: 2.24

Packit ae235b
Packit ae235b

Packit ae235b
Packit ae235b

g_data_input_stream_read_until ()

Packit ae235b
char *
Packit ae235b
g_data_input_stream_read_until (GDataInputStream *stream,
Packit ae235b
                                const gchar *stop_chars,
Packit ae235b
                                gsize *length,
Packit ae235b
                                GCancellable *cancellable,
Packit ae235b
                                GError **error);
Packit ae235b
Packit ae235b

g_data_input_stream_read_until has been deprecated since version 2.56 and should not be used in newly-written code.

Packit ae235b

Use g_data_input_stream_read_upto() instead, which has more

Packit ae235b
    consistent behaviour regarding the stop character.

Packit ae235b
Packit ae235b

Reads a string from the data input stream, up to the first

Packit ae235b
occurrence of any of the stop characters.

Packit ae235b

Note that, in contrast to g_data_input_stream_read_until_async(),

Packit ae235b
this function consumes the stop character that it finds.

Packit ae235b

Don't use this function in new code. Its functionality is

Packit ae235b
inconsistent with g_data_input_stream_read_until_async().  Both
Packit ae235b
functions will be marked as deprecated in a future release.  Use
Packit ae235b
g_data_input_stream_read_upto() instead, but note that that function
Packit ae235b
does not consume the stop character.

Packit ae235b
Packit ae235b

Parameters

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

stream

Packit ae235b

a given GDataInputStream.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

stop_chars

Packit ae235b

characters to terminate the read.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

length

Packit ae235b

a gsize to get the length of the data read in.

Packit ae235b
[out][optional]
Packit ae235b
Packit ae235b
Packit ae235b

cancellable

Packit ae235b

optional GCancellable object, NULL to ignore.

Packit ae235b
[nullable]
Packit ae235b
Packit ae235b
Packit ae235b

error

Packit ae235b

GError for error reporting.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Returns

Packit ae235b

a string with the data that was read

Packit ae235b
before encountering any of the stop characters. Set length
Packit ae235b
to
Packit ae235b
a gsize to get the length of the string. This function will
Packit ae235b
return NULL on an error. 

Packit ae235b

[transfer full]

Packit ae235b
Packit ae235b
Packit ae235b

Packit ae235b
Packit ae235b

g_data_input_stream_read_until_async ()

Packit ae235b
void
Packit ae235b
g_data_input_stream_read_until_async (GDataInputStream *stream,
Packit ae235b
                                      const gchar *stop_chars,
Packit ae235b
                                      gint io_priority,
Packit ae235b
                                      GCancellable *cancellable,
Packit ae235b
                                      GAsyncReadyCallback callback,
Packit ae235b
                                      gpointer user_data);
Packit ae235b
Packit ae235b

g_data_input_stream_read_until_async has been deprecated since version 2.56 and should not be used in newly-written code.

Packit ae235b

Use g_data_input_stream_read_upto_async() instead, which

Packit ae235b
    has more consistent behaviour regarding the stop character.

Packit ae235b
Packit ae235b

The asynchronous version of g_data_input_stream_read_until().

Packit ae235b
It is an error to have two outstanding calls to this function.

Packit ae235b

Note that, in contrast to g_data_input_stream_read_until(),

Packit ae235b
this function does not consume the stop character that it finds.  You
Packit ae235b
must read it for yourself.

Packit ae235b

When the operation is finished, callback

Packit ae235b
 will be called. You
Packit ae235b
can then call g_data_input_stream_read_until_finish() to get
Packit ae235b
the result of the operation.

Packit ae235b

Don't use this function in new code. Its functionality is

Packit ae235b
inconsistent with g_data_input_stream_read_until().  Both functions
Packit ae235b
will be marked as deprecated in a future release.  Use
Packit ae235b
g_data_input_stream_read_upto_async() instead.

Packit ae235b
Packit ae235b

Parameters

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

stream

Packit ae235b

a given GDataInputStream.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

stop_chars

Packit ae235b

characters to terminate the read.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

io_priority

Packit ae235b

the I/O priority of the request

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

cancellable

Packit ae235b

optional GCancellable object, NULL to ignore.

Packit ae235b
[nullable]
Packit ae235b
Packit ae235b
Packit ae235b

callback

Packit ae235b

callback to call when the request is satisfied.

Packit ae235b
[scope async]
Packit ae235b
Packit ae235b
Packit ae235b

user_data

Packit ae235b

the data to pass to callback function.

Packit ae235b
[closure]
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Since: 2.20

Packit ae235b
Packit ae235b

Packit ae235b
Packit ae235b

g_data_input_stream_read_until_finish ()

Packit ae235b
char *
Packit ae235b
g_data_input_stream_read_until_finish (GDataInputStream *stream,
Packit ae235b
                                       GAsyncResult *result,
Packit ae235b
                                       gsize *length,
Packit ae235b
                                       GError **error);
Packit ae235b
Packit ae235b

g_data_input_stream_read_until_finish has been deprecated since version 2.56 and should not be used in newly-written code.

Packit ae235b

Use g_data_input_stream_read_upto_finish() instead, which

Packit ae235b
    has more consistent behaviour regarding the stop character.

Packit ae235b
Packit ae235b

Finish an asynchronous call started by

Packit ae235b
g_data_input_stream_read_until_async().

Packit ae235b
Packit ae235b

Parameters

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

stream

Packit ae235b

a given GDataInputStream.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

result

Packit ae235b

the GAsyncResult that was provided to the callback.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

length

Packit ae235b

a gsize to get the length of the data read in.

Packit ae235b
[out][optional]
Packit ae235b
Packit ae235b
Packit ae235b

error

Packit ae235b

GError for error reporting.

Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Returns

Packit ae235b

a string with the data that was read

Packit ae235b
before encountering any of the stop characters. Set length
Packit ae235b
to
Packit ae235b
a gsize to get the length of the string. This function will
Packit ae235b
return NULL on an error. 

Packit ae235b

[transfer full]

Packit ae235b
Packit ae235b

Since: 2.20

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Types and Values

Packit ae235b
Packit ae235b

GDataInputStream

Packit ae235b
typedef struct _GDataInputStream GDataInputStream;
Packit ae235b

An implementation of GBufferedInputStream that allows for high-level

Packit ae235b
data manipulation of arbitrary data (including binary operations).

Packit ae235b
Packit ae235b

Packit ae235b
Packit ae235b

enum GDataStreamByteOrder

Packit ae235b

GDataStreamByteOrder is used to ensure proper endianness of streaming data sources

Packit ae235b
across various machine architectures.

Packit ae235b
Packit ae235b

Members

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

G_DATA_STREAM_BYTE_ORDER_BIG_ENDIAN

Packit ae235b
Packit ae235b

Selects Big Endian byte order.

Packit ae235b
Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

G_DATA_STREAM_BYTE_ORDER_LITTLE_ENDIAN

Packit ae235b
Packit ae235b

Selects Little Endian byte order.

Packit ae235b
Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

G_DATA_STREAM_BYTE_ORDER_HOST_ENDIAN

Packit ae235b
Packit ae235b

Selects endianness based on host machine's architecture.

Packit ae235b
Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Packit ae235b
Packit ae235b

enum GDataStreamNewlineType

Packit ae235b

GDataStreamNewlineType is used when checking for or setting the line endings for a given file.

Packit ae235b
Packit ae235b

Members

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

G_DATA_STREAM_NEWLINE_TYPE_LF

Packit ae235b
Packit ae235b

Selects "LF" line endings, common on most modern UNIX platforms.

Packit ae235b
Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

G_DATA_STREAM_NEWLINE_TYPE_CR

Packit ae235b
Packit ae235b

Selects "CR" line endings.

Packit ae235b
Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

G_DATA_STREAM_NEWLINE_TYPE_CR_LF

Packit ae235b
Packit ae235b

Selects "CR, LF" line ending, common on Microsoft Windows.

Packit ae235b
Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b

G_DATA_STREAM_NEWLINE_TYPE_ANY

Packit ae235b
Packit ae235b

Automatically try to handle any line ending type.

Packit ae235b
Packit ae235b
 
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Property Details

Packit ae235b
Packit ae235b

The “byte-order” property

Packit ae235b
  “byte-order”               GDataStreamByteOrder
Packit ae235b

The byte order.

Packit ae235b

Flags: Read / Write

Packit ae235b

Default value: G_DATA_STREAM_BYTE_ORDER_BIG_ENDIAN

Packit ae235b
Packit ae235b

Packit ae235b
Packit ae235b

The “newline-type” property

Packit ae235b
  “newline-type”             GDataStreamNewlineType
Packit ae235b

The accepted types of line ending.

Packit ae235b

Flags: Read / Write

Packit ae235b

Default value: G_DATA_STREAM_NEWLINE_TYPE_LF

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

See Also

Packit ae235b

GInputStream

Packit ae235b
Packit ae235b
Packit ae235b
Packit ae235b

Generated by GTK-Doc V1.27
Packit ae235b
</body>
Packit ae235b
</html>