class GLib::MappedFile

Overview

The #GMappedFile represents a file mapping created with g_mapped_file_new(). It has only private members and should not be accessed directly.

Defined in:

lib/gi-crystal/src/auto/g_lib-2.0/mapped_file.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pointer : Pointer(Void), transfer : GICrystal::Transfer) #

def self.new(filename : String, writable : Bool) : self #

def self.new_from_fd(fd : Int32, writable : Bool) : self #

Class Method Detail

def self.g_type : UInt64 #

Returns the type id (GType) registered in GLib type system.


Instance Method Detail

def bytes : GLib::Bytes #

def contents : String #

def finalize #

def free : Nil #

def length : UInt64 #

def ref : GLib::MappedFile #

def to_unsafe : Pointer(Void) #

def unref : Nil #