Class Allocator
public class Allocator
- Inheritance
-
Allocator
- Inherited Members
Methods
Alloc(nint, nuint, AllocationParamsHandle)
Calls native method gst_allocator_alloc.
public static extern MemoryOwnedHandle Alloc(nint allocator, nuint size, AllocationParamsHandle @params)
Parameters
allocatornintTransfer ownership: None Nullable: True
sizenuintTransfer ownership: None Nullable: False
paramsAllocationParamsHandle
Returns
- MemoryOwnedHandle
Transfer ownership: Full Nullable: True
Find(NullableUtf8StringHandle)
Calls native function gst_allocator_find.
public static extern nint Find(NullableUtf8StringHandle name)
Parameters
nameNullableUtf8StringHandleTransfer ownership: None Nullable: True
Returns
- nint
Transfer ownership: Full Nullable: True
Free(nint, MemoryUnownedHandle)
Calls native method gst_allocator_free.
public static extern void Free(nint allocator, MemoryUnownedHandle memory)
Parameters
allocatornintTransfer ownership: None Nullable: False
memoryMemoryUnownedHandleTransfer ownership: Full Nullable: False
GetGType()
Calls native function gst_allocator_get_type.
public static extern nuint GetGType()
Returns
- nuint
Transfer ownership: None Nullable: False
Register(NonNullableUtf8StringHandle, nint)
Calls native function gst_allocator_register.
public static extern void Register(NonNullableUtf8StringHandle name, nint allocator)
Parameters
nameNonNullableUtf8StringHandleTransfer ownership: None Nullable: False
allocatornintTransfer ownership: Full Nullable: False
SetDefault(nint)
Calls native method gst_allocator_set_default.
public static extern void SetDefault(nint allocator)
Parameters
allocatornintTransfer ownership: Full Nullable: False