42 #ifndef QBYTEARRAYMATCHER_H 43 #define QBYTEARRAYMATCHER_H 45 #include <QtCore/qbytearray.h> 53 class QByteArrayMatcherPrivate;
68 int indexIn(
const QByteArray &ba,
int from = 0)
const;
69 int indexIn(
const char *str,
int len,
int from = 0)
const;
72 if (q_pattern.isNull())
73 return QByteArray(reinterpret_cast<const char*>(p.p), p.l);
78 QByteArrayMatcherPrivate *
d;
103 #endif // QBYTEARRAYMATCHER_H #define QT_END_NAMESPACE
This macro expands to.
The QByteArray class provides an array of bytes.
#define QT_BEGIN_NAMESPACE
This macro expands to.
QByteArrayMatcherPrivate * d
The QByteArrayMatcher class holds a sequence of bytes that can be quickly matched in a byte array...
QByteArray pattern() const
Returns the byte array pattern that this byte array matcher will search for.