Re: portability of binary files

From: Levork (
Date: 12/14/95

> stuff concerning binary files <snip>

Just my opinion, but portability of binary files isn't too hard, and the
benefits are pretty good (speed wise). I used to run circle on an SGI (at
work ;) and develop on a linux machine at home. I was running into
problems with the binary playerfile since the byte ordering was different.
I solved it by writing an 'M' or 'I' as the first byte of pfile, to
indicate motorola/intel order. Then when reading the various int/numeric
fields, just swap the bytes if the file was written on the wrong type of

This could be adaptable for the binary world file scheme you suggested.
BTW you wouldn't need to do this between linux and dos, since they both 
have the same byte ordering.


This archive was generated by hypermail 2b30 : 12/07/00 PST