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