|
|
|
|
|
by ohr
395 days ago
|
|
That's understandable, but I think it depends on how many different structs like this you have and how many fields you need to work with (for our usecase, we had tens of structs with tens of fields each). There's also an Alternatives section in the article about other approaches that can achieve similar results, but of course 'do nothing' is also a valid option. Edit:
> If actually concerned about the need to know UI8 .. Just a small note: even if you don't care about the fact that it's a UI8, you still have to use the correct type. For example, if the field happens to be returned as UI4, this code won't work! |
|
Regarding the UI8, don't you have to get your version's struct data member type correct to the exact same degree as a typedef in my suggestion?