internal.types.collections.bytearray
class bytearray
Constructors
6
Methods
56
fromhex(value: str, /) -> bytearray
fromhex(value: bytes, /) -> bytearray
fromhex(value: bytearray, /) -> bytearray
extend(self: Self, source: Generator[int], /)
extend(self: Self, source: bytes, /)
extend(self: Self, source: bytearray, /)
startswith(self: Self, prefix, start: Optional[int] = 0, end: Optional[int] = None, /) -> bool
endswith(self: Self, suffix, start: Optional[int] = 0, end: Optional[int] = None, /) -> bool
translate(self: Self, table, /) -> bytearray
translate(self: Self, table: bytes, /, delete: bytes = "") -> bytearray
translate(self: Self, table: bytearray, /, delete: bytes = "") -> bytearray
hex(self: Self, /) -> str
hex(self: Self, /, sep: str, bytes_per_sep: int = 1) -> str
hex(self: Self, /, sep: bytes, bytes_per_sep: int = 1) -> str
join[T: type](self: Self, values: Generator[T], /) -> bytearray
join[T: type](self: Self, values: List[T], /) -> bytearray
Special methods
24
__getitem__(self: Self, index: int, /) -> int
__getitem__(self: Self, slice: Slice, /) -> bytearray
__setitem__(self: Self, slice: Slice, source: Generator[int], /)
__setitem__(self: Self, index: int, value: int, /)
__setitem__(self: Self, slice: Slice, source: bytes, /)
__setitem__(self: Self, slice: Slice, source: bytearray, /)
__contains__(self: Self, value: int, /) -> bool
__contains__(self: Self, pattern: bytes, /) -> bool
__contains__(self: Self, pattern: bytearray, /) -> bool
__add__(self: Self, other: bytearray, /) -> bytearray
__add__(self: Self, other: bytes, /) -> bytearray
__iadd__(self: Self, other: bytearray, /) -> bytearray
__iadd__(self: Self, other: bytes, /) -> bytearray
class bytes
Extends
internal.core.bytes · View complete class API →
Methods
5
count(self: Self, sub: bytearray, start: Optional[int] = 0, end: Optional[int] = None, /) -> int
find(self: Self, sub: bytearray, start: Optional[int] = 0, end: Optional[int] = None, /) -> int
rfind(self: Self, sub: bytearray, start: Optional[int] = 0, end: Optional[int] = None, /) -> int
startswith(self: Self, prefix: bytearray, start: Optional[int] = 0, end: Optional[int] = None, /) -> bool
Special methods
7