Basics
Guides
API Reference
Basics
Guides
API Reference
[14:7] extends: object
Data output stream implements [class@Gio.OutputStream] and includes functions for writing data directly to an output stream.
GDataOutputStream (base_stream = null)
Creates a new data output stream for @base_stream.
base_stream is a #GOutputStream..toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asFilterOutputStream ()
Wraps this handle as
GFilterOutputStream.
A GFilterOutputStream object.asSeekable ()
Wraps this handle as
GSeekable.
A GSeekable object.getProperty (string Name)
Reads one generated property by name.
setProperty (string Name, Value)
Writes one generated property by name.
setByteorder (string Value)
Determines the byte ordering that is used when writing multi-byte entities (such as integers) to the stream.
Value is the new property value.None.get_byte_order ()
Gets the byte order for the stream.
the #GDataStreamByteOrder for the @stream..put_byte (int data, object cancellable)
Puts a byte into the output stream.
data is a #guchar..cancellable is optional #GCancellable object, %NULL to ignore..%TRUE if @data was successfully added to the @stream..put_int16 (int data, object cancellable)
Puts a signed 16-bit integer into the output stream.
data is a #gint16..cancellable is optional #GCancellable object, %NULL to ignore..%TRUE if @data was successfully added to the @stream..put_int32 (int data, object cancellable)
Puts a signed 32-bit integer into the output stream.
data is a #gint32..cancellable is optional #GCancellable object, %NULL to ignore..%TRUE if @data was successfully added to the @stream..put_int64 (int data, object cancellable)
Puts a signed 64-bit integer into the stream.
data is a #gint64..cancellable is optional #GCancellable object, %NULL to ignore..%TRUE if @data was successfully added to the @stream..put_string (string str, object cancellable)
Puts a string into the output stream.
str is a string..cancellable is optional #GCancellable object, %NULL to ignore..%TRUE if @string was successfully added to the @stream..put_uint16 (int data, object cancellable)
Puts an unsigned 16-bit integer into the output stream.
data is a #guint16..cancellable is optional #GCancellable object, %NULL to ignore..%TRUE if @data was successfully added to the @stream..put_uint32 (int data, object cancellable)
Puts an unsigned 32-bit integer into the stream.
data is a #guint32..cancellable is optional #GCancellable object, %NULL to ignore..%TRUE if @data was successfully added to the @stream..put_uint64 (int data, object cancellable)
Puts an unsigned 64-bit integer into the stream.
data is a #guint64..cancellable is optional #GCancellable object, %NULL to ignore..%TRUE if @data was successfully added to the @stream..set_byte_order (string order)
Sets the byte order of the data output stream to @order.
order is a %GDataStreamByteOrder..None.[289:14] static extends: object
Generated metadata helpers for DataOutputStream class surfaces.
properties ()
Returns property metadata for
DataOutputStream.
A list.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.