function get_bytes(): ByteArray {
    // Gjs wrapper for g_mapped_file_get_bytes()

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.

Since 2.34


A newly allocated GLib.Bytes referencing data from file