Resource.resourcesGetInfo

Looks for a file at the specified @path in the set of globally registered resources and if found returns information about it.

@lookup_flags controls the behaviour of the lookup.

class Resource
static
bool
resourcesGetInfo
(
string path
,
GResourceLookupFlags lookupFlags
,
out size_t size
,
out uint flags
)

Parameters

path string

A pathname inside the resource

lookupFlags GResourceLookupFlags

A #GResourceLookupFlags

size size_t

a location to place the length of the contents of the file, or %NULL if the length is not needed

flags uint

a location to place the #GResourceFlags about the file, or %NULL if the flags are not needed

Return Value

Type: bool

%TRUE if the file was found. %FALSE if there were errors

Throws

GException on failure.

Meta

Since

2.32