logoalt Hacker News

pjc50yesterday at 9:23 AM1 replyview on HN

Sure, if your structure doesn't contain any pointers and you only ever want to support one endianness and you trust your compiler to fix the machine layout of the struct forever.


Replies

zadikianyesterday at 8:13 PM

Mainly the first thing. If your struct is already serial, of course serialization will be easy.