"byte-order"Read - WriteDetermines the byte ordering that is used when writing
multi-byte entities (such as integers) to the stream.
Default value: gio.DATA_STREAM_BYTE_ORDER_BIG_ENDIAN.
Descriptiongio.DataOutputStream
implements gio.InputStream
and includes functions for writing data directly to an output stream.
Constructorgio.DataOutputStreambase_streambase_stream :a
gio.OutputStream.
Returns :a new
gio.DataOutputStream
Creates a new gio.DataOutputStream
from the given base_stream.
Methodsgio.DataOutputStream.get_byte_orderget_byte_orderReturns :the stream's current
.
The get_byte_order() method gets the byte
order for the stream.
gio.DataOutputStream.put_byteput_bytedatacancellableNonedata :a char.
cancellable :optional
gio.Cancellable
object, None to ignore.
Returns :True if data was successfully added to the stream.
The put_byte() method puts a byte into the output stream.
If cancellable is not None, then the operation can be cancelled by
triggering the cancellable object from another thread. If the operation was cancelled,
the error gio.ERROR_CANCELLED will be returned.
gio.DataOutputStream.put_int16put_int16datacancellableNonedata :a gint16.
cancellable :optional
gio.Cancellable
object, None to ignore.
Returns :True if data was successfully added to the stream.
The put_int16() method puts a signed 16-bit integer into the output stream.
If cancellable is not None, then the operation can be cancelled by
triggering the cancellable object from another thread. If the operation was cancelled,
the error gio.ERROR_CANCELLED will be returned.
gio.DataOutputStream.put_int32put_int32datacancellableNonedata :a gint32.
cancellable :optional
gio.Cancellable
object, None to ignore.
Returns :True if data was successfully added to the stream.
The put_int32() method puts a signed 32-bit integer into the output stream.
If cancellable is not None, then the operation can be cancelled by
triggering the cancellable object from another thread. If the operation was cancelled,
the error gio.ERROR_CANCELLED will be returned.
gio.DataOutputStream.put_int64put_int64datacancellableNonedata :a gint64.
cancellable :optional
gio.Cancellable
object, None to ignore.
Returns :True if data was successfully added to the stream.
The put_int64() method puts a signed 64-bit integer into the output stream.
If cancellable is not None, then the operation can be cancelled by
triggering the cancellable object from another thread. If the operation was cancelled,
the error gio.ERROR_CANCELLED will be returned.
gio.DataOutputStream.put_stringput_stringstrcancellableNonestr :a string.
cancellable :optional
gio.Cancellable
object, None to ignore.
Returns :True if string was successfully added to the stream.
The put_string() method puts a string into the output stream.
If cancellable is not None, then the operation can be cancelled by
triggering the cancellable object from another thread. If the operation was cancelled,
the error gio.ERROR_CANCELLED will be returned.
gio.DataOutputStream.put_uint16put_uint16datacancellableNonedata :a guint16.
cancellable :optional
gio.Cancellable
object, None to ignore.
Returns :True if data was successfully added to the stream.
The put_uint16() method puts an unsigned 16-bit integer into the output stream.
If cancellable is not None, then the operation can be cancelled by
triggering the cancellable object from another thread. If the operation was cancelled,
the error gio.ERROR_CANCELLED will be returned.
gio.DataOutputStream.put_uint32put_uint32datacancellableNonedata :a guint32.
cancellable :optional
gio.Cancellable
object, None to ignore.
Returns :True if data was successfully added to the stream.
The put_uint32() method puts an unsigned 32-bit integer into the output stream.
If cancellable is not None, then the operation can be cancelled by
triggering the cancellable object from another thread. If the operation was cancelled,
the error gio.ERROR_CANCELLED will be returned.
gio.DataOutputStream.put_uint64put_uint64datacancellableNonedata :a guint64.
cancellable :optional
gio.Cancellable
object, None to ignore.
Returns :True if data was successfully added to the stream.
The put_uint64() method puts an unsigned 64-bit integer into the output stream.
If cancellable is not None, then the operation can be cancelled by
triggering the cancellable object from another thread. If the operation was cancelled,
the error gio.ERROR_CANCELLED will be returned.
gio.DataOutputStream.set_byte_orderset_byte_orderorderorder :a
to set.
The set_byte_order() method sets the byte order for
the given stream. All subsequent reads from the stream will be read in the given order.