From: "Wes Bauske" <wsb@paralleldata.com>
To: "axp-list@redhat.com" <axp-list@redhat.com>
Subject: Re: Byte orders
Date: Mon, 15 Jun 1998 21:36:45 +0000 [thread overview]
Message-ID: <358593ED.42101120@paralleldata.com> (raw)
In-Reply-To: 3585937C.5BDEE81C@paralleldata.com
Wes Bauske wrote:
>
> Bill wrote:
> >
> > I think "dd" has an option that swaps bytes.
> >
> > Aakin N. Patel wrote:
> > >
> > > I've managed to aquire a few binary data sets I need to work with, which
> > > are in big-endian format. Does anyone know of a quick simple byte-swapping
> > > utility that I can use to change the bytes around so that I can read the
> > > data on my alphas?
> > >
> > > - Aakin
> >
>
> It does but it doesn't swap big endian to little endian.
>
> All you need is a small program that does this:
>
> Big endian -> 1234
> Little endian -> 4321
>
> I've done this only with 32 bit things, like int/float.
> Never looked at what happens to a double. Also, character
> strings are NOT byte swapped from what I've seen. That
> confused me no end when looking at files with mixed binary
> and character data.
>
> 'od' is useful in examining what is happening.
>
Sent to wrong id, sorry...
Wes
next prev parent reply other threads:[~1998-06-15 21:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-06-12 17:58 PC164 for sale Ian Kinner
1998-06-15 19:11 ` Todd Henderson
1998-06-15 19:14 ` Todd Henderson
1998-06-15 20:30 ` Byte orders Aakin N. Patel
1998-06-15 21:04 ` Bill
[not found] ` <3585937C.5BDEE81C@paralleldata.com>
1998-06-15 21:36 ` Wes Bauske [this message]
1998-06-19 1:35 ` jrp
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox