:right-sidebar: True MapInfo =================================================================== .. currentmodule:: gi.repository.Gst .. class:: MapInfo(*args, **kwargs) :no-contents-entry: A structure containing the result of a map operation such as :func:`~gi.repository.Gst.Memory.map`. It contains the data and size. :obj:`~gi.repository.Gst.MapInfo` cannot be used with g_auto() because it is ambiguous whether it needs to be unmapped using :func:`~gi.repository.Gst.Buffer.unmap` or :func:`~gi.repository.Gst.Memory.unmap`. Instead, ``GstBufferMapInfo`` and ``GstMemoryMapInfo`` can be used in that case. Fields ------ .. rst-class:: interim-class .. class:: MapInfo :no-index: .. attribute:: data A pointer to the mapped data .. attribute:: flags Flags used when mapping the memory .. attribute:: maxsize The maximum bytes in ``data`` .. attribute:: memory A pointer to the mapped memory .. attribute:: size The valid size in ``data`` .. attribute:: user_data Extra private user_data that the implementation of the memory can use to store extra info.