I am having trouble figuring out how to convert an vector of hex values to a decimal long int.
vector<uint8_t>v;
v.push_back(0x02);
v.push_back(0x08);
v.push_back(0x00);
v.push_back(0x04);
v.push_back(0x60);
v.push_back(0x50);
v.push_back(0x58);
v.push_back(0x4E);
v.push_back(0x01);
v.push_back(0x80);
//How would I achieve this:
long time = 0x00046050584E0180; //1,231,798,102,000,000
How would I get elements 2-9 for the vector v into an long int like represented above with the long 'time'.
Thanks!