Hacker News new | past | comments | ask | show | jobs | submit login

I've done things like this.

First, the structs need the nonstandard pragmas and attributes to not pad.

Then, all accesses of 16, 32, or 64 bit quantities need to go through a helper function.

Even with that baggage, the syntax of having struct member access is can still feel more convenient than more verbose serialization code.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: