I have the following variables.
uint8_t flags;
uint32_t token;
I need to write function that cobine them into one uint64_t, and than parse them back into two variables, one of uint8_t and one of uint32_t.
uint64 convert(uint8_t flags, uint32_t token);
void convertBack(uint64 allTogether, uint8_t* flags, uint32_t* token);
I tried to found something that doing the following, but most of what I found is convert two of the same to one bigger, like two uint32_t to one uint64_t
Thank You