K
K
Kirill Zhilyaev2018-08-06 17:26:40
Qt
Kirill Zhilyaev, 2018-08-06 17:26:40

Does QT have something like JAVA's ByteBuffer?

Found QBuffer but it can only work with Char. Maybe there is some extended class?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2018-08-06
@kirill_782

Not only.
doc.qt.io/qt-5/qbytearray.html#setNum

QByteArray ba;
int n = 63;
ba.setNum(n);           // ba == "63"
QBuffer buffer(&ba);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question