Class Allocator
- Namespace
- Gst
- Assembly
- Gst-1.0.dll
public class Allocator : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
Allocator
- Implements
- Inherited Members
Constructors
Allocator(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public Allocator(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
Allocator(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Allocator(CreationData data)
Parameters
dataCreationData
Allocator(AllocatorHandle)
protected Allocator(AllocatorHandle handle)
Parameters
handleAllocatorHandle
Methods
Alloc(nuint, AllocationParams?)
public Memory? Alloc(nuint size, AllocationParams? @params)
Parameters
sizenuintparamsAllocationParams
Returns
Find(string?)
public static Allocator? Find(string? name)
Parameters
namestring
Returns
GetGType()
public static Type GetGType()
Returns
NewFromPointer(nint, bool)
Creates a new managed Allocator instance for a given pointer.
public static Allocator NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new Allocator and sets the properties specified by the construct arguments.
public static Allocator NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
Register(string, Allocator)
public static void Register(string name, Allocator allocator)
Parameters
SetDefault()
public void SetDefault()