Gst.Allocator

const Gst = imports.gi.Gst;

let allocator = new Gst.Allocator();
  

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

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

New memory can be created with Gst.new_wrapped that wraps the memory allocated elsewhere.

Last reviewed on 2012-07-09 (0.11.3)

Hierarchy

  • GObject.Object
    • GObject.InitiallyUnowned
      • Gst.Object
        • Gst.Allocator