Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: SimpleIOStreamMeta

[121:14] static extends: object

Generated metadata helpers for SimpleIOStream class surfaces.

Methods

  • properties ()

    Returns property metadata for SimpleIOStream.

    • @r A list.

class: SimpleIOStream

[20:7] extends: object

GSimpleIOStream creates a [class@Gio.IOStream] from an arbitrary [class@Gio.InputStream] and [class@Gio.OutputStream]. This allows any pair of input and output streams to be used with [class@Gio.IOStream] methods. This is useful when you obtained a [class@Gio.InputStream] and a [class@Gio.OutputStream] by other means, for instance creating them with platform specific methods as g_unix_input_stream_new() (from gio-unix-2.0.pc / GioUnix-2.0), and you want to take advantage of the methods provided by [class@Gio.IOStream].

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • SimpleIOStream (input_stream = null, output_stream = null)

    Creates a new #GSimpleIOStream wrapping @input_stream and @output_stream. See also #GIOStream.

    • @p input_stream is a #GInputStream..
    • @p output_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.
  • asIOStream ()

    Wraps this handle as IOStream.

    • @r A IOStream object.