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 _gType() @property
Allocator self()Returns `this`, for use in `with` statements.
AllocatorGidBuilder builder()Get builder for [gst.allocator.Allocator] Returns: New builder object
gst.allocator.Allocator find(string name = null)Find a previously registered allocator with name. When name is null, the default allocator will be returned.
void register(string name, gst.allocator.Allocator allocator)Registers the memory allocator with name.
gst.memory.Memory alloc(size_t size, gst.allocation_params.AllocationParams params)Use allocator to allocate a new memory block with memory that is at least size big.
void setDefault()Set 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()Create object from builder. Returns: New object