Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to get length of QByteArray with binary data?
Infinity last edited by
I have to following code:
QByteArray value = "2ad6a8da948de3ae0b73f5660574cc459fe8ad35"; m_value = QByteArray(QByteArray::fromHex(value)); m_length = m_value.
If value contains a '\0' it will show the wrong value.
What is the clean way to get the length of the binary data in QByteArray?