logoalt Hacker News

jstimpfleyesterday at 9:12 PM2 repliesview on HN

Does that mean there are no file formats thatbuse big endian? And network byte order isn't a thing?


Replies

teravoryesterday at 9:50 PM

    > there are no file formats thatbuse big endian
if someone chooses to do that they own the problems.

    > network byte order isn't a thing
if the network serializes/deserializes for you (kernel primitives) then you don't care what it does. if it doesn't and for some reason you choose to use big endian, again, you own the problem.
charcircuityesterday at 9:59 PM

Generally those edge cases are always the same endianness. You don't need big and little endianness versions of the structures. What's important is that everyone agrees on the same thing.