I’ve got a whole chunk of data in memory but I’m only really interested in a relatively few locations. Is there a good way to label the memory I’m actually using while ignoring the rest. So far I’m using a struct like the following which looks a bit awkward.
struct Data {
field1: u32,
reserved1: [u8; 8], // skip a few
field2: u16,
reserved2: [u8, 128]
// ...
}
I guess I could do something with macros and pointers but I’d have thought that’d be more convoluted and error prone.