Resource.openStream

gio.input_stream.InputStream openStream(string path, gio.types.ResourceLookupFlags lookupFlags)

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

lookup_flags controls the behaviour of the lookup.

Parameters

pathA pathname inside the resource
lookupFlagsA #GResourceLookupFlags

Returns

#GInputStream or null on error.

Free the returned object with [gobject.object.ObjectWrap.unref]

Throws

[ErrorWrap]