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.SeekableAbstract: No Structure: Gio.DataOutputStreamClassData 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) – aGio.OutputStream.Returns: Gio.DataOutputStream.Return type: Gio.DataOutputStreamCreates a new data output stream for base_stream.
-
get_byte_order()[source]¶ Returns: the Gio.DataStreamByteOrderfor the self.Return type: Gio.DataStreamByteOrderGets 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) – aGio.DataStreamByteOrder.Sets the byte order of the data output stream to order.
-
classmethod
Property Details¶
-
Gio.DataOutputStream.props.byte_order¶ Name: byte-orderType: Gio.DataStreamByteOrderDefault Value: Gio.DataStreamByteOrder.BIG_ENDIANFlags: READABLE,WRITABLEDetermines the byte ordering that is used when writing multi-byte entities (such as integers) to the stream.