open_stream


Description:

public InputStream open_stream (string path, ResourceLookupFlags lookup_flags) throws Error

Looks for a file at the specified path in the resource and returns a [class@Gio.

InputStream] that lets you read the data.

lookup_flags controls the behaviour of the lookup.

The only error this can return is g_resource_error_not_found, if path was not found in this.

Parameters:

this

A [struct@Gio.Resource]

path

A path name inside the resource

lookup_flags

A [flags@Gio.ResourceLookupFlags]

Returns:

[class@Gio.InputStream] or `NULL` on error