|
From: Mahr, S. <Ste...@sp...> - 2011-07-11 12:51:22
|
Sorry, little mistake: wrong: >> LE host: result = (uint32_t)buffer[0]; // result = 0x78563412 (memory 0x12 0x34 0x56 0x78) >> BE host: result = (uint32_t)buffer[0]; // result = 0x12345678 (memory 0x12 0x34 0x56 0x78) corrected: LE host: result = *(uint32_t*)&buffer[0]; // result = 0x78563412 (memory 0x12 0x34 0x56 0x78) BE host: result = *(uint32_t*)&buffer[0]; // result = 0x12345678 (memory 0x12 0x34 0x56 0x78) |