#include <QtCore/qbytearray.h> #ifndef QBYTEARRAY_H class QByteArray{ /* Some contents are skipped to improve readability */ private: struct Data{ public: struct QBasicAtomic ref; public: int alloc; public: int size; public: char* data; public: char array[1]; }; /* ... */ }; #endif // QBYTEARRAY_H