logoalt Hacker News

P-Nutstoday at 12:46 PM0 repliesview on HN

You just define the structures in terms of some e.g. uint32_le etc types for which you provide conversion functions to native endianness. On a little endian platform the conversion is a no-op.