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

> Turns out Python can tell you if you are big-endian or little-endian like this:

sys.byteorder

Cool. Handy way to do a quick check. I didn't realize Raspbian on Pi is little-endian.

Most I've used struct is with XBee ZigBee protocol, which uses big-endian.



Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

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

Search: