How do i convert a vector of chars to a unsigned int 64?
std::vector<char> bytes = {0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01, 0x0b,0x52,0xed,0xfb,0x9f,0x29,0x80,0x00} qint64 wall_clock = (bytes.at(10) << 56 & 0xFF00000000000000) | (bytes.at(11) << 48 & 0x00FF000000000000) | (bytes.at(12) << 40 & 0x0000FF0000000000) | (bytes.at(13) << 32 & 0x000000FF00000000) | (bytes.at(14) << 24 & 0x00000000FF000000) | (bytes.at(15) << 16 & 0x0000000000FF0000) | (bytes.at(16) << 8 & 0x000000000000FF00) | (bytes.at(17) & 0x00000000000000FF); I keep getting 0xFFFF9F298000. the result should be 0x0B52EDFB9F298000.
what am i missing?