Table of Contents

Class Resource

Namespace
Gio
Assembly
Gio-2.0.dll
public sealed class Resource : BoxedRecord, IEquatable<Resource>
Inheritance
Resource
Implements
Inherited Members

Constructors

Resource(ResourceOwnedHandle)

public Resource(ResourceOwnedHandle handle)

Parameters

handle ResourceOwnedHandle

Properties

Handle

public ResourceOwnedHandle Handle { get; }

Property Value

ResourceOwnedHandle

Methods

EnumerateChildren(string, ResourceLookupFlags)

[Version("2.32")]
public string[] EnumerateChildren(string path, ResourceLookupFlags lookupFlags)

Parameters

path string
lookupFlags ResourceLookupFlags

Returns

string[]

Equals(Resource?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Resource? other)

Parameters

other Resource

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetGType()

public static Type GetGType()

Returns

Type

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetInfo(string, ResourceLookupFlags, out nuint, out uint)

[Version("2.32")]
public bool GetInfo(string path, ResourceLookupFlags lookupFlags, out nuint size, out uint flags)

Parameters

path string
lookupFlags ResourceLookupFlags
size nuint
flags uint

Returns

bool

Load(string)

[Version("2.32")]
public static Resource Load(string filename)

Parameters

filename string

Returns

Resource

LookupData(string, ResourceLookupFlags)

[Version("2.32")]
public Bytes LookupData(string path, ResourceLookupFlags lookupFlags)

Parameters

path string
lookupFlags ResourceLookupFlags

Returns

Bytes

NewFromData(Bytes)

[Version("2.32")]
public static Resource NewFromData(Bytes data)

Parameters

data Bytes

Returns

Resource

OpenStream(string, ResourceLookupFlags)

[Version("2.32")]
public InputStream OpenStream(string path, ResourceLookupFlags lookupFlags)

Parameters

path string
lookupFlags ResourceLookupFlags

Returns

InputStream

Ref()

[Version("2.32")]
public Resource Ref()

Returns

Resource

Register()

[Version("2.32")]
public void Register()

Unref()

[Version("2.32")]
public void Unref()

Unregister()

[Version("2.32")]
public void Unregister()