module Gio::FileDescriptorBased

Overview

GFileDescriptorBased is an interface for file descriptor based IO.

It is implemented by streams (implementations of Gio::InputStream or Gio::OutputStream) that are based on file descriptors.

Note that <gio/gfiledescriptorbased.h> belongs to the UNIX-specific GIO interfaces, thus you have to use the gio-unix-2.0.pc pkg-config file or the GioUnix-2.0 GIR namespace when using it.

Direct including types

Defined in:

lib/gi-crystal/src/auto/gio-2.0/file_descriptor_based.cr

Constructors

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.


Class Method Detail

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

def self.g_type : UInt64 #

Instance Method Detail

def fd : Int32 #

abstract def to_unsafe #