TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Pascal Schmidt
from: Jasen Betts
date: 2004-01-20 06:06:24
subject: Big endian machines

Hi Pascal.

18-Jan-04 15:30:28, Pascal Schmidt wrote to Jasen Betts


 PS> Hi Jasen! :-)

 JB>> The other is to have the software detect the endianness of the
 JB>> data file and set a flag which youv'e implemented to switch the
 JB>> byte-swapping on or off at runtime.

 PS> That is usually easy to do under one condition: there needs to be
 PS> at least one magic value in the data file which can be used to
 PS> detect endianness. Otherwise, if there is no suitable value (at a
 PS> fixed position), then one needs to read the data and carefully
 PS> look at it to see whether it might be byte-swapped. Depends on the
 PS> data whether this is hard or easy. If it's just arbitrary numbers,
 PS> there is no way to do it.

NTFS has some interestingh file attributes, but yeah, if you can rely on a
key number being near the start of the file it makes life easier
PS> Ciao Pascal



 -=> Bye <=-

---
* Origin: As King Arthur said: Some days it all seems so feudal. (3:640/1042)
SEEN-BY: 633/267 270
@PATH: 640/1042 531 954 774/605 123/500 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.