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.
This call existed before #GMappedFile had refcounting and is currently exactly the same as g_mapped_file_unref().
Creates a new #GBytes which references the data mapped from @file. The mapped contents of the file must not be modified after creating this bytes object, because a #GBytes should be immutable.
Returns the contents of a #GMappedFile.
Returns the length of the contents of a #GMappedFile.
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 #GMappedFile represents a file mapping created with g_mapped_file_new(). It has only private members and should not be accessed directly.