I'm parsing the binary data from the bitcoin core blockchain blkxxxxx.dat files. If I read out the magic number I get this:
\xf9\xbe\xb4\xd9\
Why isn't it stored the other way around, as the magic number is d9b4bef9? Is this just the way bytes are stored in memory?
I'm aware this is a complete noob question, but could anybody help me understand this. Thanks.