Cross Code
43 subscribers
233 photos
28 videos
1 file
125 links
Everyone has a channel now why not me ig.
Expect dev and gaming stuff.
In-joy

Discussions here - https://t.me/+CkXl8tSd-Ds0YmVk
Download Telegram
To much shit posting this days. Lets talk about Endianness.(not to be confused with pajeets)
Endianness is the order in which bytes are stored in memory.
Their are 2 common formats which are Big Endian and Little Endian.
Big Endian system: Stores the most significant byte first (at the lowest memory address.)
example: If we had a hexadecimal 0x12345678, it would be stored as this:
 0x12 | 0x34 | 0x56 | 0x78

where the left is the lowest address and the right is the highest address.

Little Endian system: Strores the least significant byte first. it is used in most modern computers like x86 uses it.
Lets ake the earlier example:
for 0x12345678
0x78 | 0x56 | 0x34 | 0x12

welp its just flipping the order.
It kinda doesn't matter for the most part when ur build Ur next AI MEGACORP but its nice to know if ur doing networks programming (which most protocols use big endians btw) and binary files (which will depend on ur system.

#programming
👍3