resource_load


Description:


[ Version ( replacement = "Resource.load" , since = "2.32" ) ]
public Resource resource_load (string filename) throws Error

Loads a binary resource bundle and creates a Resource representation of it, allowing you to query it for data.

If you want to use this resource in the global resource namespace you need to register it with resources_register.

If filename is empty or the data in it is corrupt, g_resource_error_internal will be returned. If filename doesn’t exist, or there is an error in reading it, an error from MappedFile will be returned.

Parameters:

filename

the path of a filename to load, in the GLib filename encoding

Returns:

a new Resource, or null on error


Namespace: GLib
Package: gio-2.0