:right-sidebar: True AllocatorFlags =================================================================== .. currentmodule:: gi.repository.Gst .. class:: AllocatorFlags :no-contents-entry: Flags for allocators. Fields ------ .. rst-class:: interim-class .. class:: AllocatorFlags :no-index: .. attribute:: CUSTOM_ALLOC The allocator has a custom alloc function. Only elements designed to work with this allocator should be using it, other elements should ignore it from allocation propositions. This implies :const:`~gi.repository.Gst.AllocatorFlags.NO_COPY`. .. attribute:: LAST First flag that can be used for custom purposes .. attribute:: NO_COPY When copying a :obj:`~gi.repository.Gst.Memory` allocated with this allocator, the copy will instead be allocated using the default allocator. Use this when allocating a new memory is an heavy opperation that should only be done with a :obj:`~gi.repository.Gst.BufferPool` for example. .. versionadded:: 1.24