Sets our main struct and passes it to the parent class.
Maps a file into memory. On UNIX, this is using the mmap() function.
Maps a file into memory. On UNIX, this is using the mmap() function.
A destructor is present on this object, but not explicitly documented in the source.
This call existed before glib.MappedFile had refcounting and is currently exactly the same as MappedFile.unref.
Creates a new glib.Bytes which references the data mapped from file. The mapped contents of the file must not be modified after creating this bytes object, because a glib.Bytes should be immutable.
Returns the contents of a glib.MappedFile
Returns the length of the contents of a glib.MappedFile
Get the main Gtk struct
the main Gtk struct as a void*
Increments the reference count of file by one. It is safe to call this function from any thread.
Decrements the reference count of file by one. If the reference count drops to 0, unmaps the buffer of file and frees it.
the main Gtk struct
The glib.MappedFile represents a file mapping created with MappedFile.new. It has only private members and should not be accessed directly.