:right-sidebar: True Bytes =================================================================== .. currentmodule:: gi.repository.GObject .. class:: Bytes(**kwargs) :no-contents-entry: :Constructors: :: new(data:list=None) -> GLib.Bytes new_take(data:list=None) -> GLib.Bytes Constructors ------------ .. rst-class:: interim-class .. class:: Bytes :no-index: .. classmethod:: new(data: list[int] | None = None) -> ~gi.repository.GLib.Bytes :param data: .. classmethod:: new_take(data: list[int] | None = None) -> ~gi.repository.GLib.Bytes :param data: Methods ------- .. rst-class:: interim-class .. class:: Bytes :no-index: .. method:: compare(bytes2: ~gi.repository.GLib.Bytes) -> int :param bytes2: .. method:: equal(bytes2: ~gi.repository.GLib.Bytes) -> bool :param bytes2: .. method:: get_data() -> list[int] | None .. method:: get_region(element_size: int, offset: int, n_elements: int) -> ~typing.Any | None :param element_size: :param offset: :param n_elements: .. method:: get_size() -> int .. method:: hash() -> int .. method:: new_from_bytes(offset: int, length: int) -> ~gi.repository.GLib.Bytes :param offset: :param length: