Methods
gio.DataOutputStream.get_byte_order
def get_byte_order()
The get_byte_order
() method gets the byte
order for the stream.
gio.DataOutputStream.put_byte
def put_byte(data
, cancellable
=None)
data :
| 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_int16
def put_int16(data
, cancellable
=None)
data :
| 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_int32
def put_int32(data
, cancellable
=None)
data :
| 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_int64
def put_int64(data
, cancellable
=None)
data :
| 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_string
def put_string(str
, cancellable
=None)
str :
| 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_uint16
def put_uint16(data
, cancellable
=None)
data :
| 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_uint32
def put_uint32(data
, cancellable
=None)
data :
| 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_uint64
def put_uint64(data
, cancellable
=None)
data :
| 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_order
def set_byte_order(order
)
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.