Qt Code:
quint16 res = *reinterpret_cast<const quint16 *>(&buffer1.constData[i]); // if you want 0xFE45 res = ((res << 8) | (res >> 8)); // if you want 0x45FETo copy to clipboard, switch view to plain text mode
Qt Code:
quint16 res = *reinterpret_cast<const quint16 *>(&buffer1.constData[i]); // if you want 0xFE45 res = ((res << 8) | (res >> 8)); // if you want 0x45FETo copy to clipboard, switch view to plain text mode
Last edited by Radek; 23rd March 2014 at 19:28.
Smosia (23rd March 2014)
Bookmarks