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) #

[View source]
def self.new(filename : String, writable : Bool) : self #

[View source]
def self.new_from_fd(fd : Int32, writable : Bool) : self #

[View source]

Class Method Detail

def self.g_type : UInt64 #

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


[View source]

Instance Method Detail

def bytes : GLib::Bytes #

[View source]
def contents : String #

[View source]
def finalize #

[View source]
def free : Nil #

DEPRECATED


[View source]
def length : UInt64 #

[View source]
def ref : GLib::MappedFile #

[View source]
def to_unsafe : Pointer(Void) #

[View source]
def unref : Nil #

[View source]