C++ (Qt)char MasVal[6]; unsigned long long int MSecs = 0; memcpy(MSecs, MasVal, 6); unsigned int Secs = MSecs / 1000;
C...printf("Size: %d", sizeof(long long));
C++ (Qt)unsigned high = (buf [0] << 24) | (buf [1] << 16) | (buf [2] << 8) | buf [3];unsigned low = (buf [4] << 8) | buf [5];unsigned result = high / 1000 + ((high % 1000) << 16 + low) / 1000;
C...secl += ((t[4] << 8) + t[5]) & 0x0000FFFF;...
((high % 1000) << 16)
C u32 h; ((u8 *)(&h))[3] = t[0]; ((u8 *)(&h))[2] = t[1]; ((u8 *)(&h))[1] = t[2]; ((u8 *)(&h))[0] = t[3];
Cunsigned high = (buf [0] << 24) | (buf [1] << 16) | (buf [2] << 8) | buf [3];