module Gio::PollableInputStream
Overview
#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:
lib/gi-crystal/src/auto/gio-2.0/pollable_input_stream.crConstructors
-
.cast(obj : GObject::Object) : self
Cast a
GObject::Object
toself
, throws aTypeCastError
if the cast can't be made.
Class Method Summary
Instance Method Summary
- #can_poll : Bool
- #create_source(cancellable : Gio::Cancellable | Nil) : GLib::Source
- #is_readable : Bool
- #read_nonblocking(buffer : Bytes, cancellable : Gio::Cancellable | Nil) : Int64
- #to_unsafe
Constructor Detail
Cast a GObject::Object
to self
, throws a TypeCastError
if the cast can't be made.