What is the best way to store a uint32_t, uint8_t in the shared memory in continuous successions?
i.e. if we represent uint32_t as a and uint8_t as b, i want to store it in shared memory as
ababababababababababababab
what is the best way to do this? should I use void* and then typecast it each time i write something to shared memory? Or is there a simpler way?
will Typecasting create complications when I want to travese the shared memory lateron?
An array of a packed struct sounds like a good bet, no casting needed.