This call existed before GLib.MappedFile had refcounting and is currently
exactly the same as g_mapped_file_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.
A newly allocated GLib.Bytes referencing data from file
Returns the contents of a GLib.MappedFile.
Note that the contents may not be zero-terminated, even if the GLib.MappedFile is backed by a text file.
If the file is empty then null is returned.
the contents of file, or null.
Returns the length of the contents of a GLib.MappedFile.
the length of the contents of file.
Increments the reference count of file by one. It is safe to call
this function from any thread.
the passed in GLib.MappedFile.
Decrements the reference count of file by one. If the reference count
drops to 0, unmaps the buffer of file and frees it.
It is safe to call this function from any thread.
Since 2.22
StaticnewStaticnew_
The GLib.MappedFile represents a file mapping created with
g_mapped_file_new(). It has only private members and should not be accessed directly.