PollableInputStream

GPollableInputStream is implemented by class@Gio.InputStreams that can be polled for readiness to read. This can be used when interfacing with a non-GIO API that expects UNIX-file-descriptor-style asynchronous I/O rather than GIO-style.

Some classes may implement GPollableInputStream but have only certain instances of that class be pollable. If method@Gio.PollableInputStream.can_poll returns false, then the behavior of other GPollableInputStream methods is undefined.

Skipped during bindings generation

  • parameter buffer: buffer: Out parameter is not supported

Since

2.28

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val gioPollableInputStreamPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
open fun canPoll(): Boolean

Checks if @stream is actually pollable. Some classes may implement #GPollableInputStream but have only certain instances of that class be pollable. If this method returns false, then the behavior of other #GPollableInputStream methods is undefined.

Link copied to clipboard
open fun createSource(cancellable: Cancellable? = null): <Error class: unknown class>

Creates a #GSource that triggers when @stream can be read, or

Link copied to clipboard
open fun isReadable(): Boolean

Checks if @stream can be read.