Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: DataOutputStream

[14:7] extends: object

Data output stream implements [class@Gio.OutputStream] and includes functions for writing data directly to an output stream.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • DataOutputStream (base_stream = null)

    Creates a new data output stream for @base_stream.

    • @p 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 exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • asFilterOutputStream ()

    Wraps this handle as FilterOutputStream.

    • @r A FilterOutputStream object.
  • asSeekable ()

    Wraps this handle as Seekable.

    • @r A Seekable 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.

    • @p Value is the new property value.
    • @r None.
  • get_byte_order ()

    Gets the byte order for the stream.

  • put_string (string str, object cancellable)

    Puts a string into the output stream.

    • @p str is a string..
    • @p cancellable is optional #GCancellable object, %NULL to ignore..
  • set_byte_order (string order)

    Sets the byte order of the data output stream to @order.

    • @p order is a %GDataStreamByteOrder..
    • @r None.

class: DataOutputStreamMeta

[179:14] static extends: object

Generated metadata helpers for DataOutputStream class surfaces.

Methods

  • properties ()

    Returns property metadata for DataOutputStream.

    • @r A list.