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
- #bytes : GLib::Bytes
- #contents : String
- #finalize
-
#free : Nil
DEPRECATED
- #length : UInt64
- #ref : GLib::MappedFile
- #to_unsafe : Pointer(Void)
- #unref : Nil
Constructor Detail
Class Method Detail
Returns the type id (GType) registered in GLib type system.