Bytes#

class Bytes(**kwargs)#
Constructors:

new(data:list=None) -> GLib.Bytes
new_from_bytes(bytes:GLib.Bytes, offset:int, length:int) -> GLib.Bytes
new_take(data:list=None) -> GLib.Bytes

Constructors#

class Bytes
classmethod new(data: list[int] | None = None) → Bytes#
Parameters:

data

classmethod new_from_bytes(bytes: Bytes, offset: int, length: int) → Bytes#
Parameters:
  • bytes

  • offset

  • length

classmethod new_take(data: list[int] | None = None) → Bytes#
Parameters:

data

Methods#

class Bytes
compare(bytes2: Bytes) → int#
Parameters:

bytes2

equal(bytes2: Bytes) → bool#
Parameters:

bytes2

get_data() → list[int] | None#
get_region(element_size: int, offset: int, n_elements: int) → Any | None#
Parameters:
  • element_size

  • offset

  • n_elements

get_size() → int#
hash() → int#