On 22 Dec 2009, at 12:57, Dale Welch wrote:

how do you make a saved tstream cross-platform?

Use a twriter/treader to save/load data to/from the stream, then all endian issues will be taken care of automatically (and even converting between the x86' extended type and double on platforms that don't support it).

http://www.freepascal.org/docs-html/rtl/classes/twriter.html
http://www.freepascal.org/docs-html/rtl/classes/treader.html


Jonas
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to