I am trying to concatenate a vector of four elements into a 4-byte word to represent as an uint32_t.
Sorry, I don't have my code, but this is what I am trying to do:
vector v; // each element is a byte, with four elements v[0], v[1], v[2], v[3] concatenate these four elements to form a word (I guess a char[32]?) [0][1][2][3] to use as a uint32_t.
I have tried changing v[0,1,2,3] to strings then appending the strings using loops but for whatever reason, the end results was adding erroneous bits.
Thank you so much for the help everyone!