GstAllocator

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.

Members

Variables

GstReserved
void*[2] GstReserved;
memCopy
GstMemoryCopyFunction memCopy;

the implementation of the GstMemoryCopyFunction

memIsSpan
GstMemoryIsSpanFunction memIsSpan;

the implementation of the GstMemoryIsSpanFunction

memMap
GstMemoryMapFunction memMap;

the implementation of the GstMemoryMapFunction

memMapFull
GstMemoryMapFullFunction memMapFull;

the implementation of the GstMemoryMapFullFunction. Will be used instead of @mem_map if present. (Since: 1.6)

memShare
GstMemoryShareFunction memShare;

the implementation of the GstMemoryShareFunction

memType
const(char)* memType;
memUnmap
GstMemoryUnmapFunction memUnmap;

the implementation of the GstMemoryUnmapFunction

memUnmapFull
GstMemoryUnmapFullFunction memUnmapFull;

the implementation of the GstMemoryUnmapFullFunction. Will be used instead of @mem_unmap if present. (Since: 1.6)

object
GstObject object;
priv
GstAllocatorPrivate* priv;