Skip to content

ByteArrayMatcher

Base classes

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

⋔ Inheritance diagram

graph TD
  1061327060["core.ByteArrayMatcher"]
  3360719379["QtCore.QByteArrayMatcher"]
  37984305["Shiboken.Object"]
  2751680898["builtins.object"]
  3360719379 --> 1061327060
  37984305 --> 3360719379
  2751680898 --> 37984305

🛈 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().data())

:fa-brands-github: Show source on GitHub