문제

How to implement on Qt logic of PHP functions unpack?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top