From: "Martin Dowie" <martin.dowie@btopenworld.com>
Subject: Re: Any examples of Byte Ordering Functions
Date: Fri, 17 Oct 2003 12:08:44 +0000 (UTC)
Date: 2003-10-17T12:08:44+00:00 [thread overview]
Message-ID: <bmom4b$llg$1@titan.btinternet.com> (raw)
In-Reply-To: cNCjb.573899$cF.247166@rwcrnsc53
<tmoran@acm.org> wrote in message news:cNCjb.573899$cF.247166@rwcrnsc53...
> >build to.from arrays of Unsigned_32.
> >
> >You could write your own functions to do this - it is trivial, esp if you
> How about raising the abstraction level and using Streams. ie, don't
> read something as Unsigned_32, then byte swap (or not). Instead define
> a 'Read for objects of the type and two implementation of that 'Read,
> one just reading four bytes and the other reading four bytes and swapping.
Yes, that sounds good but at the time I was working in an '83 shop,
so no streams.
Actually, the next time I used them I was working at a place that did
have an '95 compiler but prohibited the use of any '95 features! Sad
but true...
next prev parent reply other threads:[~2003-10-17 12:08 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-15 17:42 Any examples of Byte Ordering Functions Bill Sheehan
2003-10-15 18:55 ` Larry Kilgallen
2003-10-15 18:44 ` Hyman Rosen
2003-10-16 1:01 ` James Rogers
2003-10-16 13:32 ` Hyman Rosen
2003-10-16 14:59 ` Martin Dowie
2003-10-16 20:00 ` tmoran
2003-10-17 12:08 ` Martin Dowie [this message]
2003-10-19 15:22 ` chris
2003-10-19 17:25 ` (see below)
2003-10-19 13:45 ` chris
2003-10-19 16:53 ` Martin Dowie
2003-10-19 17:52 ` chris
2003-10-19 19:24 ` Martin Dowie
2003-10-19 20:47 ` Jeffrey Carter
2003-10-19 22:53 ` tmoran
2003-10-20 4:14 ` Jeffrey Carter
2003-10-23 20:36 ` Laurent Pautet
2003-10-23 21:37 ` Simon Wright
2003-10-24 4:37 ` Simon Wright
2003-10-26 15:05 ` Georg Bauhaus
2003-10-23 20:44 ` Laurent Pautet
2003-10-23 21:03 ` Laurent Pautet
2003-10-15 19:58 ` Frank J. Lhota
2003-10-16 16:28 ` Stephen Leake
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox