ByteArray#

class ByteArray(*args, **kwargs)#
Constructors:

ByteArray()

Methods#

class ByteArray
append(array: Sequence[int], data: int, len: int) bytes#
Parameters:
  • array

  • data

  • len

free(array: Sequence[int], free_segment: bool) int#
Parameters:
  • array

  • free_segment

free_to_bytes(array: Sequence[int]) Bytes#
Parameters:

array

new() bytes#
new_take(data: Sequence[int]) bytes#
Parameters:

data

prepend(array: Sequence[int], data: int, len: int) bytes#
Parameters:
  • array

  • data

  • len

remove_index(array: Sequence[int], index_: int) bytes#
Parameters:
  • array

  • index

remove_index_fast(array: Sequence[int], index_: int) bytes#
Parameters:
  • array

  • index

remove_range(array: Sequence[int], index_: int, length: int) bytes#
Parameters:
  • array

  • index

  • length

set_size(array: Sequence[int], length: int) bytes#
Parameters:
  • array

  • length

sized_new(reserved_size: int) bytes#
Parameters:

reserved_size

sort(array: Sequence[int], compare_func: Callable[[None, None], int]) None#
Parameters:
  • array

  • compare_func

sort_with_data(array: Sequence[int], compare_func: Callable[[...], int], *user_data: Any) None#
Parameters:
  • array

  • compare_func

  • user_data

Fields#

class ByteArray
data#
len#