FdAllocator

Base class for allocators with fd-backed memory

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this()

Return a new fd allocator.

Members

Functions

self
FdAllocator self()

Returns this, for use in with statements.

Properties

gType
GType gType [@property getter]

Static functions

alloc
gst.memory.Memory alloc(gst.allocator.Allocator allocator, int fd, size_t size, gstallocators.types.FdMemoryFlags flags)

Return a gst.memory.Memory that wraps a generic file descriptor.

getGType
GType getGType()

Inherited Members

From Allocator

getGType
GType getGType()
gType
GType gType [@property getter]
self
Allocator self()

Returns this, for use in with statements.

find
gst.allocator.Allocator find(string name)

Find a previously registered allocator with name. When name is null, the default allocator will be returned.

register
void register(string name, gst.allocator.Allocator allocator)

Registers the memory allocator with name.

alloc
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.

setDefault
void setDefault()

Set the default allocator.