Class Resource
public class Resource
- Inheritance
-
Resource
- Inherited Members
Methods
EnumerateChildren(ResourceHandle, NonNullableUtf8StringHandle, ResourceLookupFlags, out ErrorOwnedHandle)
Calls native method g_resource_enumerate_children. Version: 2.32
[Version("2.32")]
public static extern Utf8StringArrayNullTerminatedOwnedHandle EnumerateChildren(ResourceHandle resource, NonNullableUtf8StringHandle path, ResourceLookupFlags lookupFlags, out ErrorOwnedHandle error)
Parameters
resource
ResourceHandleTransfer ownership: None Nullable: False
path
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
lookupFlags
ResourceLookupFlagsTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- Utf8StringArrayNullTerminatedOwnedHandle
Transfer ownership: Full Nullable: False
GetGType()
Calls native function g_resource_get_type.
public static extern nuint GetGType()
Returns
- nuint
Transfer ownership: None Nullable: False
GetInfo(ResourceHandle, NonNullableUtf8StringHandle, ResourceLookupFlags, out nuint, out uint, out ErrorOwnedHandle)
Calls native method g_resource_get_info. Version: 2.32
[Version("2.32")]
public static extern bool GetInfo(ResourceHandle resource, NonNullableUtf8StringHandle path, ResourceLookupFlags lookupFlags, out nuint size, out uint flags, out ErrorOwnedHandle error)
Parameters
resource
ResourceHandleTransfer ownership: None Nullable: False
path
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
lookupFlags
ResourceLookupFlagsTransfer ownership: None Nullable: False
size
nuintTransfer ownership: Full Nullable: False
flags
uintTransfer ownership: Full Nullable: False
error
ErrorOwnedHandle
Returns
- bool
Transfer ownership: None Nullable: False
Load(NonNullablePlatformStringHandle, out ErrorOwnedHandle)
Calls native function g_resource_load. Version: 2.32
[Version("2.32")]
public static extern ResourceOwnedHandle Load(NonNullablePlatformStringHandle filename, out ErrorOwnedHandle error)
Parameters
filename
NonNullablePlatformStringHandleTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- ResourceOwnedHandle
Transfer ownership: Full Nullable: False
LookupData(ResourceHandle, NonNullableUtf8StringHandle, ResourceLookupFlags, out ErrorOwnedHandle)
Calls native method g_resource_lookup_data. Version: 2.32
[Version("2.32")]
public static extern BytesOwnedHandle LookupData(ResourceHandle resource, NonNullableUtf8StringHandle path, ResourceLookupFlags lookupFlags, out ErrorOwnedHandle error)
Parameters
resource
ResourceHandleTransfer ownership: None Nullable: False
path
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
lookupFlags
ResourceLookupFlagsTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- BytesOwnedHandle
Transfer ownership: Full Nullable: False
NewFromData(BytesHandle, out ErrorOwnedHandle)
Calls native constructor g_resource_new_from_data. Version: 2.32
[Version("2.32")]
public static extern ResourceOwnedHandle NewFromData(BytesHandle data, out ErrorOwnedHandle error)
Parameters
data
BytesHandleTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- ResourceOwnedHandle
Transfer ownership: Full Nullable: False
OpenStream(ResourceHandle, NonNullableUtf8StringHandle, ResourceLookupFlags, out ErrorOwnedHandle)
Calls native method g_resource_open_stream. Version: 2.32
[Version("2.32")]
public static extern IntPtr OpenStream(ResourceHandle resource, NonNullableUtf8StringHandle path, ResourceLookupFlags lookupFlags, out ErrorOwnedHandle error)
Parameters
resource
ResourceHandleTransfer ownership: None Nullable: False
path
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
lookupFlags
ResourceLookupFlagsTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- IntPtr
Transfer ownership: Full Nullable: False
Ref(ResourceHandle)
Calls native method g_resource_ref. Version: 2.32
[Version("2.32")]
public static extern ResourceOwnedHandle Ref(ResourceHandle resource)
Parameters
resource
ResourceHandleTransfer ownership: None Nullable: False
Returns
- ResourceOwnedHandle
Transfer ownership: Full Nullable: False
Register(ResourceHandle)
Calls native method g_resources_register. Version: 2.32
[Version("2.32")]
public static extern void Register(ResourceHandle resource)
Parameters
resource
ResourceHandleTransfer ownership: None Nullable: False
Unref(ResourceHandle)
Calls native method g_resource_unref. Version: 2.32
[Version("2.32")]
public static extern void Unref(ResourceHandle resource)
Parameters
resource
ResourceHandleTransfer ownership: None Nullable: False
Unregister(ResourceHandle)
Calls native method g_resources_unregister. Version: 2.32
[Version("2.32")]
public static extern void Unregister(ResourceHandle resource)
Parameters
resource
ResourceHandleTransfer ownership: None Nullable: False