Resource.openStream

Looks for a file at the specified path in the resource and returns a gio.InputStream that lets you read the data.

lookup_flags controls the behaviour of the lookup.

class Resource
openStream

Parameters

path string

A pathname inside the resource

lookupFlags GResourceLookupFlags

Return Value

gio.InputStream or NULL on error. Free the returned object with g_object_unref()

Throws

GException on failure.

Meta

Since

2.32