WARNING: USE THIS SOFTWARE AT YOUR OWN RISK! THIS IS EXPERIMENTAL SOFTWARE NOT INTENDED FOR PRODUCTION USE! Zuble is currently an early stage prototype. As such Zuble is minimally tested and inherently unstable. It is provided for experimental, development, and demonstration purposes only. | Zuble QML Types | Zuble C++ Classes | Zuble Overview |
Zuble
0.1
Zuble Framework C++/QML extension API
|
This class supports streaming of text and binary data. More...
#include <ZByteArray.h>
Public Member Functions | |
ZByteArray (QObject *parent=0) | |
ZByteArray (const QByteArray &byteArray, QObject *parent=0) | |
ZByteArray (ZqByteArrayPtr byteArray, QObject *parent=0) | |
ZqByteArrayPtr | qByteArray () |
int | getSize () const |
bool | isEmpty () |
Q_INVOKABLE void | jAppend (QList< int > data) |
Q_INVOKABLE void | stringAppend (const QString &text) |
Q_INVOKABLE QList< int > | toArray () |
Q_INVOKABLE QString | getString () |
Q_INVOKABLE int | at (int index) const |
Q_INVOKABLE void | clear () |
Q_INVOKABLE QString | toHexString () const |
Static Public Member Functions | |
static void | registerType () |
Registers ZByteArray as a QML type. More... | |
Protected Attributes | |
ZqByteArrayPtr | m_ba |
Properties | |
uint | size |
bool | isEmpty |
Friends | |
class | ZFile |
class | ZTextStream |
This class supports streaming of text and binary data.
Definition at line 41 of file ZByteArray.h.
|
explicit |
Definition at line 32 of file ZByteArray.cpp.
|
explicit |
Definition at line 39 of file ZByteArray.cpp.
|
explicit |
Definition at line 47 of file ZByteArray.cpp.
int Zbl::ZByteArray::at | ( | int | index | ) | const |
Definition at line 74 of file ZByteArray.cpp.
void Zbl::ZByteArray::clear | ( | ) |
Definition at line 81 of file ZByteArray.cpp.
int Zbl::ZByteArray::getSize | ( | ) | const |
Definition at line 60 of file ZByteArray.cpp.
QString Zbl::ZByteArray::getString | ( | ) |
Definition at line 138 of file ZByteArray.cpp.
bool Zbl::ZByteArray::isEmpty | ( | ) |
Referenced by getSize().
void Zbl::ZByteArray::jAppend | ( | QList< int > | data | ) |
Definition at line 110 of file ZByteArray.cpp.
|
inline |
Definition at line 51 of file ZByteArray.h.
Referenced by Zbl::ZDataStream::zWriteBytes(), and Zbl::ZDataStream::zWriteRawData().
|
static |
Registers ZByteArray as a QML type.
Definition at line 54 of file ZByteArray.cpp.
Referenced by qByteArray(), and Zbl::Zblcore::registerTypes().
void Zbl::ZByteArray::stringAppend | ( | const QString & | text | ) |
Definition at line 119 of file ZByteArray.cpp.
QList< int > Zbl::ZByteArray::toArray | ( | ) |
Definition at line 127 of file ZByteArray.cpp.
Referenced by jAppend().
QString Zbl::ZByteArray::toHexString | ( | ) | const |
Definition at line 89 of file ZByteArray.cpp.
|
friend |
Definition at line 43 of file ZByteArray.h.
|
friend |
Definition at line 44 of file ZByteArray.h.
|
protected |
Definition at line 103 of file ZByteArray.h.
Referenced by at(), clear(), getSize(), getString(), jAppend(), qByteArray(), stringAppend(), toArray(), toHexString(), Zbl::ZTextStream::writeBytes(), and Zbl::ZFile::zWriteData().
|
read |
Definition at line 60 of file ZByteArray.h.
|
read |
Definition at line 59 of file ZByteArray.h.
Referenced by jAppend(), toArray(), and toHexString().
Zuble documentation copyright © 2019 Bob Dinitto. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Zuble is a derivative work of Qt version 5. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.