Skip to content

ByteArrayMatcher

Qt Base Class: QByteArrayMatcher

Signature: QByteArrayMatcher(self) -> None QByteArrayMatcher(self, other: Union[PySide6.QtCore.QByteArrayMatcher, bytes]) -> None QByteArrayMatcher(self, pattern: bytes, length: int = -1) -> None QByteArrayMatcher(self, pattern: Union[PySide6.QtCore.QByteArray, bytes]) -> None

Base classes

Name Children Inherits
QByteArrayMatcher
PySide6.QtCore
QByteArrayMatcher(self) -> None

⋔ Inheritance diagram

graph TD
  1473299828688["core.ByteArrayMatcher"]
  1473289005232["QtCore.QByteArrayMatcher"]
  1473291690208["Shiboken.Object"]
  140713234304496["builtins.object"]
  1473289005232 --> 1473299828688
  1473291690208 --> 1473289005232
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: QByteArrayMatcher

Holds a sequence of bytes that can be quickly matched in a byte array.

Source code in prettyqt\core\bytearraymatcher.py
class ByteArrayMatcher(QtCore.QByteArrayMatcher):
    """Holds a sequence of bytes that can be quickly matched in a byte array."""

    def __repr__(self):
        return get_repr(self, self.get_pattern())

    def get_pattern(self) -> bytes:
        return bytes(self.pattern())