메모리 관점에서의 구조체 데이터
code
1 |
|
Analysis
1 | 0xffffcde0: 0xbb 0x00 0x86 0x47 0xf9 0xd9 0x01 0x00 |
short : 0x4786 - 18310, 0x8647 - 34375, 0xd9f9 - 55801
int : 0xbeefbabe - 3203381950, 0xffff3b6d - 4294916973
short : 0x6d70 - 28016, 0x706d - 28781, 0x0065 = 101
long :
0x 1eabdf1effe1afde - 2210105366390354000
1 | 0xffffcde0: 0xbb 0x00 0x86 0x47 0xf9 0xd9 0x01 0x00 |
little endian
short : 0x0001 - 1, 0xd9f9 - 55801
int : 0x478600bb - 1199964347
short : 0xbeef - 48879, 0xbabe - 47806
long : 0xffff3b6d - 4294916973
char[5] : emplh
long long : deafe1ff1edfab1e - 16046292483195250000
char : 0x47 - G, 0x21 - !
big endian
short : 0xbb00 - 47872
int : 0xf9d90100 - 4191748352
short : 6d3b - 27963
long : 3199922110
char[5] : 0x68 - h, 0x6c - l, 0x70 - p, 0x6d - m, 0x65 - e
longlong : 0x1eabdf1effe1afde - 2210105366390354000
char : 0x21 - !, 0x47 - G
1 | 0xffffcde0: 0xbb 0x00 0x86 0x47 0xf9 0xd9 0x01 0x00 |
short : 0x8647 - 34375
int : 0xf9d90100 - 4191748352
short : 0xffff - 65535
long : 0xbebaefbe - 3199922110
char[] : 0x68 - h, 0x6c - l, 0x70 - p, 0x6d - m, 0x65 - e = hlpme
long long : 0x1eabdf1effe1afde - 2210105366390354000
char : 0x21 - ‘!’