Y
Hacker News
new
|
ask
|
show
|
jobs
by
pjc50
147 days ago
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.
2 comments
zadikian
147 days ago
Mainly the first thing. If your struct is already serial, of course serialization will be easy.
link
userbinator
147 days ago
...which is true for 99.999% of the time anyway, so it's not worth worrying about.
link