Question

How to implement on Qt logic of PHP functions unpack?

Was it helpful?

Solution

Basically, you are looking at using QByteArray, and typecasting the output to some format.

http://qt-project.org/doc/qt-4.8/qbytearray.html#details

Another way to think about this, is you are taking some structure or type, turning it into a long string of ones and zeros, and then on the other end you are switching it back.

Hope that helps.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top