Gio.DataOutputStream¶
class — extends FilterOutputStream, Seekable
Data output stream implements OutputStream and includes functions
for writing data directly to an output stream.
Constructors¶
new¶
Creates a new data output stream for base_stream.
Parameters:
base_stream— aOutputStream.
Methods¶
get_byte_order¶
Gets the byte order for the stream.
put_byte¶
Puts a byte into the output stream.
Parameters:
data— a #guchar.cancellable— optionalCancellableobject,Noneto ignore.
put_int16¶
Puts a signed 16-bit integer into the output stream.
Parameters:
data— a #gint16.cancellable— optionalCancellableobject,Noneto ignore.
put_int32¶
Puts a signed 32-bit integer into the output stream.
Parameters:
data— a #gint32.cancellable— optionalCancellableobject,Noneto ignore.
put_int64¶
Puts a signed 64-bit integer into the stream.
Parameters:
data— a #gint64.cancellable— optionalCancellableobject,Noneto ignore.
put_string¶
Puts a string into the output stream.
Parameters:
str— a string.cancellable— optionalCancellableobject,Noneto ignore.
put_uint16¶
Puts an unsigned 16-bit integer into the output stream.
Parameters:
data— a #guint16.cancellable— optionalCancellableobject,Noneto ignore.
put_uint32¶
Puts an unsigned 32-bit integer into the stream.
Parameters:
data— a #guint32.cancellable— optionalCancellableobject,Noneto ignore.
put_uint64¶
Puts an unsigned 64-bit integer into the stream.
Parameters:
data— a #guint64.cancellable— optionalCancellableobject,Noneto ignore.
set_byte_order¶
Sets the byte order of the data output stream to order.
Parameters:
order— aGDataStreamByteOrder.
Properties¶
byte_order¶
Determines the byte ordering that is used when writing multi-byte entities (such as integers) to the stream.