gst.allocator
Module for Allocator class
Types 3
classAllocator : gst.object.ObjectWrap
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
AllocatorGidBuilder builder()Get builder for [gst.allocator.Allocator] Returns: New builder objectgst.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.Fluent builder implementation template for gst.allocator.Allocator
Fluent builder for gst.allocator.Allocator