gio.data_output_stream
Module for [DataOutputStream] class
Types 3
Data output stream implements [gio.output_stream.OutputStream] and includes functions for writing data directly to an output stream.
Methods
DataOutputStream self()Returns `this`, for use in `with` statements.DataOutputStreamGidBuilder builder()Get builder for [gio.dataoutputstream.DataOutputStream] Returns: New builder objectgio.types.DataStreamByteOrder byteOrder() @propertyGet `byteOrder` property. Returns: Determines the byte ordering that is used when writing multi-byte entities (such as integers) to the stream.void byteOrder(gio.types.DataStreamByteOrder propval) @propertySet `byteOrder` property. Params: propval = Determines the byte ordering that is used when writing multi-byte entities (such as integers) to the stream.gio.types.DataStreamByteOrder getByteOrder()Gets the byte order for the stream. Returns: the #GDataStreamByteOrder for the stream.bool putByte(ubyte data, gio.cancellable.Cancellable cancellable = null)Puts a byte into the output stream.bool putInt16(short data, gio.cancellable.Cancellable cancellable = null)Puts a signed 16-bit integer into the output stream.bool putInt32(int data, gio.cancellable.Cancellable cancellable = null)Puts a signed 32-bit integer into the output stream.bool putInt64(long data, gio.cancellable.Cancellable cancellable = null)Puts a signed 64-bit integer into the stream.bool putString(string str, gio.cancellable.Cancellable cancellable = null)Puts a string into the output stream.bool putUint16(ushort data, gio.cancellable.Cancellable cancellable = null)Puts an unsigned 16-bit integer into the output stream.bool putUint32(uint data, gio.cancellable.Cancellable cancellable = null)Puts an unsigned 32-bit integer into the stream.bool putUint64(ulong data, gio.cancellable.Cancellable cancellable = null)Puts an unsigned 64-bit integer into the stream.void setByteOrder(gio.types.DataStreamByteOrder order)Sets the byte order of the data output stream to order.Constructors
this(gio.output_stream.OutputStream baseStream)Creates a new data output stream for base_stream.classDataOutputStreamGidBuilderImpl(T) : gio.filter_output_stream.FilterOutputStreamGidBuilderImpl!T, gio.seekable.SeekableGidBuilderImpl!T
Methods
T byteOrder(gio.types.DataStreamByteOrder propval)Set `byteOrder` property. Params: propval = Determines the byte ordering that is used when writing multi-byte entities (such as integers) to the stream. Returns: Builder instance for fluent chainingFluent builder for [gio.data_output_stream.DataOutputStream]
Methods