You can also try:
Qt Code:
quint16 num = 43981; // note that "int" is 4 bytes long and not 2 as in your code qToBigEndian(num, byte.data());To copy to clipboard, switch view to plain text mode
You can also try:
Qt Code:
quint16 num = 43981; // note that "int" is 4 bytes long and not 2 as in your code qToBigEndian(num, byte.data());To copy to clipboard, switch view to plain text mode
Bookmarks