:right-sidebar: True AllocationParams =================================================================== .. currentmodule:: gi.repository.Gst .. class:: AllocationParams(**kwargs) :no-contents-entry: Parameters to control the allocation of memory Constructors ------------ .. rst-class:: interim-class .. class:: AllocationParams :no-index: .. classmethod:: new() -> ~gi.repository.Gst.AllocationParams Create a new :obj:`~gi.repository.Gst.AllocationParams` on the heap. This function is for use in GStreamer language bindings. In your own code, you can just declare a :obj:`~gi.repository.Gst.AllocationParams` on the stack or in a struct, and call :func:`~gi.repository.Gst.AllocationParams.init` to initialize it. You do not need to call :func:`~gi.repository.Gst.AllocationParams.init` on the instance returned by this function. .. versionadded:: 1.20 Methods ------- .. rst-class:: interim-class .. class:: AllocationParams :no-index: .. method:: free() -> None Free ``params`` .. method:: init() -> None Initialize ``params`` to its default values Fields ------ .. rst-class:: interim-class .. class:: AllocationParams :no-index: .. attribute:: align The desired alignment of the memory .. attribute:: flags Flags to control allocation .. attribute:: padding The desired padding .. attribute:: prefix The desired prefix