Gio.DataOutputStream¶
- Subclasses:
None
Methods¶
- Inherited:
Gio.FilterOutputStream (3), Gio.OutputStream (29), GObject.Object (37), Gio.Seekable (5)
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Gio.DataOutputStream(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Data output stream implements [class`Gio`.OutputStream] and includes functions for writing data directly to an output stream.
- classmethod new(base_stream)[source]¶
- Parameters:
base_stream (
Gio.OutputStream
) – aGio.OutputStream
.- Returns:
- Return type:
Creates a new data output stream for base_stream.
- get_byte_order()[source]¶
- Returns:
the
Gio.DataStreamByteOrder
for the self.- Return type:
Gets the byte order for the stream.
- put_byte(data, cancellable)[source]¶
- Parameters:
data (
int
) – a #guchar.cancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object,None
to ignore.
- Raises:
- Returns:
True
if data was successfully added to the self.- Return type:
Puts a byte into the output stream.
- put_int16(data, cancellable)[source]¶
- Parameters:
data (
int
) – a #gint16.cancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object,None
to ignore.
- Raises:
- Returns:
True
if data was successfully added to the self.- Return type:
Puts a signed 16-bit integer into the output stream.
- put_int32(data, cancellable)[source]¶
- Parameters:
data (
int
) – a #gint32.cancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object,None
to ignore.
- Raises:
- Returns:
True
if data was successfully added to the self.- Return type:
Puts a signed 32-bit integer into the output stream.
- put_int64(data, cancellable)[source]¶
- Parameters:
data (
int
) – a #gint64.cancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object,None
to ignore.
- Raises:
- Returns:
True
if data was successfully added to the self.- Return type:
Puts a signed 64-bit integer into the stream.
- put_string(str, cancellable)[source]¶
- Parameters:
str (
str
) – a string.cancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object,None
to ignore.
- Raises:
- Returns:
True
if string was successfully added to the self.- Return type:
Puts a string into the output stream.
- put_uint16(data, cancellable)[source]¶
- Parameters:
data (
int
) – a #guint16.cancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object,None
to ignore.
- Raises:
- Returns:
True
if data was successfully added to the self.- Return type:
Puts an unsigned 16-bit integer into the output stream.
- put_uint32(data, cancellable)[source]¶
- Parameters:
data (
int
) – a #guint32.cancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object,None
to ignore.
- Raises:
- Returns:
True
if data was successfully added to the self.- Return type:
Puts an unsigned 32-bit integer into the stream.
- put_uint64(data, cancellable)[source]¶
- Parameters:
data (
int
) – a #guint64.cancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object,None
to ignore.
- Raises:
- Returns:
True
if data was successfully added to the self.- Return type:
Puts an unsigned 64-bit integer into the stream.
- set_byte_order(order)[source]¶
- Parameters:
order (
Gio.DataStreamByteOrder
) – aGio.DataStreamByteOrder
.
Sets the byte order of the data output stream to order.
Property Details¶
- Gio.DataOutputStream.props.byte_order¶
- Name:
byte-order
- Type:
- Default Value:
- Flags:
Determines the byte ordering that is used when writing multi-byte entities (such as integers) to the stream.