Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The issue, I think, is when the swapping is done. If you cast raw bytes into a structure you can forget to swap. If you read fields individually with a helper functions that swap when needed, you can't.

Whether there's a endianness conditional anywhere there or not is a bit of pedantry, I think.



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

Search: