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
Methods
EnumerateChildren(string, ResourceLookupFlags)
[Version("2.32")]
public string[] EnumerateChildren(string path, ResourceLookupFlags lookupFlags)
Parameters
path
stringlookupFlags
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
ResourceAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetGType()
public static Type GetGType()
Returns
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
stringlookupFlags
ResourceLookupFlagssize
nuintflags
uint
Returns
Load(string)
[Version("2.32")]
public static Resource Load(string filename)
Parameters
filename
string
Returns
LookupData(string, ResourceLookupFlags)
[Version("2.32")]
public Bytes LookupData(string path, ResourceLookupFlags lookupFlags)
Parameters
path
stringlookupFlags
ResourceLookupFlags
Returns
NewFromData(Bytes)
[Version("2.32")]
public static Resource NewFromData(Bytes data)
Parameters
data
Bytes
Returns
OpenStream(string, ResourceLookupFlags)
[Version("2.32")]
public InputStream OpenStream(string path, ResourceLookupFlags lookupFlags)
Parameters
path
stringlookupFlags
ResourceLookupFlags
Returns
Ref()
[Version("2.32")]
public Resource Ref()
Returns
Register()
[Version("2.32")]
public void Register()
Unref()
[Version("2.32")]
public void Unref()
Unregister()
[Version("2.32")]
public void Unregister()