gst.allocator

Module for [Allocator] class

Types 3

Memory is usually created by allocators with a gst.allocator.Allocator.alloc method call. When null is used as the allocator, the default allocator will be used.

New allocators can be registered with gst.allocator.Allocator.register. Allocators are identified by name and can be retrieved with gst.allocator.Allocator.find. gst.allocator.Allocator.setDefault can be used to change the default allocator.

New memory can be created with gst.memory.Memory.newWrapped that wraps the memory allocated elsewhere.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
Allocator self() nothrowReturns `this`, for use in `with` statements.
AllocatorGidBuilder builder() static nothrowGet builder for [gst.allocator.Allocator] Returns: New builder object
gst.allocator.Allocator find(string name = null) static nothrowFind a previously registered allocator with name. When name is null, the default allocator will be returned.
void register(string name, gst.allocator.Allocator allocator) static nothrowRegisters the memory allocator with name.
gst.memory.Memory alloc(size_t size, gst.allocation_params.AllocationParams params) nothrowUse allocator to allocate a new memory block with memory that is at least size big.
void setDefault() nothrowSet the default allocator.
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder implementation template for gst.allocator.Allocator

Fluent builder for gst.allocator.Allocator

Methods
Allocator build() nothrowCreate object from builder. Returns: New object