Little-endian, Big-endian
IP주소 체계를 설명하기 위해 우선 Big-endian, Little-endian에 대해 정리 합니다.Big-endian: 큰 바이트가 먼저 저장됩니다. 예를 들어, 0x12345678이라는 숫자는 메모리에 0x12 0x34 0x56 0x78 순으로 저장됩니다.Little-endian: 작은 바이트가 먼저 저장됩니다. 예를 들어, 0x12345678이라는 숫자는 메모리에 0x78 0x56 0x34 0x12 순으로 저장됩니다. * 0x12345678이 big-endian과 little-endian으로 저장될 때의 메모리 구조Big-endian:0x00: 0x120x01: 0x340x02: 0x560x03: 0x78Little-endian:0x00: 0x780x01: 0x560x02: 0x34..
2024.07.15