function get_contents(): String {
    // Gjs wrapper for g_mapped_file_get_contents()

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.

Since 2.8


the contents of file, or null.