Table of Contents

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

constructArguments ConstructArgument[]

Allocator(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Allocator(CreationData data)

Parameters

data CreationData

Allocator(AllocatorHandle)

protected Allocator(AllocatorHandle handle)

Parameters

handle AllocatorHandle

Methods

Alloc(nuint, AllocationParams?)

public Memory? Alloc(nuint size, AllocationParams? @params)

Parameters

size nuint
params AllocationParams

Returns

Memory

Find(string?)

public static Allocator? Find(string? name)

Parameters

name string

Returns

Allocator

GetGType()

public static Type GetGType()

Returns

Type

NewFromPointer(nint, bool)

Creates a new managed Allocator instance for a given pointer.

public static Allocator NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

Allocator

NewWithProperties(ConstructArgument[])

Creates a new Allocator and sets the properties specified by the construct arguments.

public static Allocator NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

Allocator

Register(string, Allocator)

public static void Register(string name, Allocator allocator)

Parameters

name string
allocator Allocator

SetDefault()

public void SetDefault()