43 #include <QtCore/qbytearray.h>
50 #ifndef QT_NO_DATASTREAM
71 inline bool isEmpty()
const {
return d.isEmpty(); }
72 inline bool isNull()
const {
return d.isNull(); }
103 const char *
bits()
const {
return isEmpty() ?
nullptr :
d.constData() + 1; }
114 { *
this =
QBitArray((asize < 0 ? this->
size() : asize), aval);
return true; }
122 return (*(
reinterpret_cast<const uchar*
>(
d.constData())+1+(
i>>3)) & (1 << (
i & 7))) != 0; }
126 *(
reinterpret_cast<uchar*
>(
d.data())+1+(
i>>3)) |=
uchar(1 << (
i & 7)); }
130 *(
reinterpret_cast<uchar*
>(
d.data())+1+(
i>>3)) &= ~
uchar(1 << (
i & 7)); }
161 #ifndef QT_NO_DATASTREAM
166 #ifndef QT_NO_DEBUG_STREAM
small capitals from c petite p scientific i
[1]
size_t qHash(const FixStringCacheKey &f)
The QBitArray class provides an array of bits.
void truncate(qsizetype pos)
bool testBit(qsizetype i) const
const char * bits() const
bool at(qsizetype i) const
QBitArray(QBitArray &&other) noexcept
bool operator==(const QBitArray &other) const
QBitArray operator^(const QBitArray &a1, const QBitArray &a2)
bool operator!=(const QBitArray &other) const
QBitArray & operator=(const QBitArray &other)
QBitArray operator|(const QBitArray &a1, const QBitArray &a2)
void clearBit(qsizetype i)
bool fill(bool val, qsizetype size=-1)
bool toggleBit(qsizetype i)
QBitArray(const QBitArray &other)
QBitArray operator&(const QBitArray &a1, const QBitArray &a2)
QBitRef operator[](qsizetype i)
The QBitRef class is an internal class, used with QBitArray.
QBitRef & operator=(const QBitRef &val)
QBitRef & operator=(bool val)
The QByteArray class provides an array of bytes.
The QDataStream class provides serialization of binary data to a QIODevice.
operator>>(QDataStream &ds, qfloat16 &f)
operator<<(QDataStream &ds, qfloat16 f)
The QDebug class provides an output stream for debugging information.
auto it unsigned count const
Q_CORE_EXPORT QDataStream & operator<<(QDataStream &, const QBitArray &)
Q_CORE_EXPORT QDataStream & operator>>(QDataStream &, QBitArray &)
QT_BEGIN_INCLUDE_NAMESPACE typedef unsigned char uchar
#define QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(Class)
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
[7]
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLenum GLsizei count
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
const void * data_ptr(const QTransform &t)
#define Q_DECLARE_SHARED(TYPE)
QUrl::FormattingOptions & operator|=(QUrl::FormattingOptions &i, QUrl::ComponentFormattingOptions f)