GLib.MappedFile.prototype.ref

function ref(): GLib.MappedFile {
    // Gjs wrapper for g_mapped_file_ref()
}
  

Increments the reference count of file by one. It is safe to call this function from any thread.

Since 2.22

Returns

the passed in GLib.MappedFile.