:right-sidebar: True ByteArrayInterface =================================================================== .. currentmodule:: gi.repository.Gst .. versionadded:: 1.24 .. class:: ByteArrayInterface(*args, **kwargs) :no-contents-entry: Interface for an array of bytes. It is expected to be subclassed to implement ``resize`` virtual method using language native array implementation, such as GLib's ``GByteArray``, C++'s ``std::vector`` or Rust's ``Vec``\. ``resize`` implementation could allocate more than requested to avoid repeated reallocations. It can return :const:`False`, or be set to :const:`None`, in the case the array cannot grow. Fields ------ .. rst-class:: interim-class .. class:: ByteArrayInterface :no-index: .. attribute:: data A pointer to an array of bytes. .. attribute:: len Number of bytes in ``data``\. .. attribute:: resize Reallocate ``data``\.