|
||||||
| C and C++ C and C++ forum for discussing all forms of C except for C#. These languages are powerful low level languages used for creating Operating Systems, Device Drivers, compilers and much more. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||||
|
Endianness is about how the data is stored in the memory. When you're talking about endianness, you're usually talking about big endian, little endian, and some times mixed endian. There's much more information on Wikipedia.
|
|
|||
|
UPDATE: FREAD AND FWRITE DO NOT COMPENSATE FOR BIG/LITTLE ENDIAN MODE.
And yes, it would affect the data. 0xABCD is not the same as 0xDCBA. I think (but I'm not sure) that fread() and fwrite() take care of that. If you need to use specific data sizes that are cross-platform, instead of using BYTE,WORD,DWORD, and QWORD, use __int8, __int16, __int32, and __int64 (use unsigned prefix if necessary). These are guaranteed to be the same size on any system, indicated by the number after int which is the number of bits. Last edited by dargueta; 01-27-2008 at 12:59 PM. Reason: Fixed an error |
|
|||
|
I don't quite get what you mean.
|
| Sponsored Links |
|
|
|
|||
|
Um...no. Should I have? As long as one uses the right data type declarations, architecture shouldn't matter.
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ionFiles Popular Files Module | Jordan | ionFiles | 4 | 11-27-2008 09:43 AM |
| Alter many files, all with same variable in them | woocha | PHP Forum | 3 | 01-17-2008 07:06 PM |
| How do I read .mbm (Multi BitMap) files? | moondog | General Programming | 7 | 08-07-2007 08:08 AM |
| Java Help Files | xXHalfSliceXx | Java Help | 3 | 11-29-2006 12:30 AM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |