| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Big endian machines |
Hi Jasen! :-) JB> The other is to have the software detect the endianness of the data JB> file and set a flag which youv'e implemented to switch the JB> byte-swapping on or off at runtime. That is usually easy to do under one condition: there needs to be at least one magic value in the data file which can be used to detect endianness. Otherwise, if there is no suitable value (at a fixed position), then one needs to read the data and carefully look at it to see whether it might be byte-swapped. Depends on the data whether this is hard or easy. If it's just arbitrary numbers, there is no way to do it. Ciao Pascal --- Msged/LNX 6.1.1* Origin: SYS 64738 (1:153/401.2) SEEN-BY: 633/267 270 @PATH: 153/401 307 140/1 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™.