Message-ID: <31BE1DD5.2172@3-cities.com>
Date: Tue, 11 Jun 1996 18:31:01 -0700
From: "Travis Griggs (and Kerrin and Courtney too)" <tkc@3-cities.com>
Reply-To: tkc@3-cities.com
X-Mailer: Mozilla 2.01 (Macintosh; U; PPC)
MIME-Version: 1.0
Newsgroups: comp.lang.smalltalk
Subject: Re: Newbie Stream question
References: <31BCF883.2F9@cs.uno.edu>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: bradford
Lines: 27
Path: cantaloupe.srv.cs.cmu.edu!bb3.andrew.cmu.edu!newsfeed.pitt.edu!godot.cc.duq.edu!newsgate.duke.edu!news.mathworks.com!newsfeed.internetmci.com!netnews.nwnet.net!204.203.224.159!

nrlproj wrote:
> 
> Hi,
> 
>   I'm new to smalltalk and have a question.
> 
>   I have a file with:
> 
>        a four-byte integer
>        a character
>        an eight-byte float
> 
>        all numbers are in binary and little endian.
> 
>   How do I read this?  The byte-order have to be reversed
>   since my system uses big endian.
> 
>   Any help would be appreciated.  Thanks.
> 
>   I'm using VW 2.0.

Since, you're using VW, you should be able to use UninterpretedBytes to 
handle the different endian protocols. Use next: to get a ByteArray 
object and then convert to an UninterpretdBytes which you can then query 
for doubleAt:, longAt:, etc.. Sorry, can't be more specific than that, 
don't have my image sitting in front of me :).

Travis Griggs
tkc@3-cities.com
