GLib.KeyFile.prototype.to_data

function to_data(): [return_value: String, length: Number(gsize)] {
    // Gjs wrapper for g_key_file_to_data()
}
  

This function outputs key_file as a string.

Note that this function never reports an error, so it is safe to pass null as @error.

Since 2.6

return_value

a newly allocated string holding the contents of the GLib.KeyFile

length

return location for the length of the returned string, or null