realbasic-nug
[Top] [All Lists]

Re: Little Endian

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Little Endian
From: Will Leshner <leshner at ljug dot com>
Date: Thu, 30 Sep 2004 15:43:00 -0700
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <20040930 dot 173316 dot -427723 dot 0 dot Erockus at juno dot com>
Eric Richards wrote:

In one of my projects I'm using binary stream with
WriteShort and WritePString - Read as well. Now if someday I do a Windows build isn't there something I need to do about the LittleEndian thing?

I think you are ok with PStrings, but you would need to worry about shorts. One 
thing you can do is pick an endianess and then just set the BinaryStream to be 
that endianess on all platforms.

<shameless-plug>
Actually, my articles on TanGram in RB Developer talk a little bit about this 
when I talk about writing and reading TanGram files in a cross-platform way.
</shameless-plug>

--
REALbasic database options: http://sqlabs.net
REALbasic news and tips: http://rbgazette.com
KIdzMail & KidzLog: http://haranbanjo.com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>