Creates a GResource from a reference to the binary resource bundle.
This will keep a reference to @data while the resource lives, so
the data should not be modified or freed.
If you want to use this resource in the global resource namespace you need
to register it with g_resources_register().
Note: @data must be backed by memory that is at least pointer aligned.
Otherwise this function will internally create a copy of the memory since
GLib 2.56, or in older versions fail and exit the process.
If @data is empty or corrupt, %G_RESOURCE_ERROR_INTERNAL will be returned.
Creates a GResource from a reference to the binary resource bundle. This will keep a reference to @data while the resource lives, so the data should not be modified or freed.
If you want to use this resource in the global resource namespace you need to register it with g_resources_register().
Note: @data must be backed by memory that is at least pointer aligned. Otherwise this function will internally create a copy of the memory since GLib 2.56, or in older versions fail and exit the process.
If @data is empty or corrupt, %G_RESOURCE_ERROR_INTERNAL will be returned.