class GLib::MappedFile
- GLib::MappedFile
- Reference
- Object
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.crConstructors
- .new(pointer : Pointer(Void), transfer : GICrystal::Transfer)
- .new(filename : String, writable : Bool) : self
- .new_from_fd(fd : Int32, writable : Bool) : self
Class Method Summary
-
.g_type : UInt64
Returns the type id (GType) registered in GLib type system.
Instance Method Summary
-
#==(other : self) : Bool
Returns
true
if this reference is the same as other. - #bytes : GLib::Bytes
- #contents : String
- #finalize
- #free : Nil
- #length : UInt64
- #ref : GLib::MappedFile
- #to_unsafe : Pointer(Void)
- #unref : Nil
Constructor Detail
Class Method Detail
Instance Method Detail
Description copied from class Reference
Returns true
if this reference is the same as other. Invokes same?
.