module Gio::PollableInputStream


#GPollableInputStream is implemented by #GInputStreams 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.

Direct including types

Defined in:



Class Method Summary

Instance Method Summary

Constructor Detail

def self.cast(obj : GObject::Object) : self #

Cast a GObject::Object to self, throws a TypeCastError if the cast can't be made.

[View source]

Class Method Detail

def self.cast?(obj : GObject::Object) : self | Nil #

[View source]
def self.g_type : UInt64 #

[View source]

Instance Method Detail

def can_poll : Bool #

[View source]
def create_source(cancellable : Gio::Cancellable | Nil) : GLib::Source #

[View source]
def is_readable : Bool #

[View source]
def read_nonblocking(buffer : Bytes, cancellable : Gio::Cancellable | Nil) : Int64 #

[View source]
abstract def to_unsafe #

[View source]