comp.lang.ada
 help / color / mirror / Atom feed
From: "Dr. Michael Paus" <paus@ib-paus.com>
Subject: Re: Last stream problem: byte order
Date: Tue, 26 Mar 2002 19:25:53 +0100
Date: 2002-03-26T18:25:54+00:00	[thread overview]
Message-ID: <3CA0BD31.ECE7528E@ib-paus.com> (raw)
In-Reply-To: uzo0vw70i.fsf@wanadoo.fr

Pascal Obry wrote:
> 
> "Dr. Michael Paus" <paus@ib-paus.com> writes:
> 
> > The easiest way to solve this problem once an forever is to manipulate the
> > file s-stratt.adb from the GNAT library. It handles all the stream stuff for
> 
> No the /easiest/ way to do that is to grab the GLADE s-stratt.adb
> implementation :)

Please correct me if I am wrong but as far as I remember the data produced by
this implementation is not compatibel with other languages like, e.g. Java.
It uses an XDR encoding for the data which was invented by SUN in the late 80s
for their RPC stuff but does not seem to be used in more recent designs like, e.g.
Java. It also produces a significant overhead compared to a solution which just
swaps some bytes. I also wonder how the original poster would get this XDR
encoding into his C++ framework. (I don't say it's not possible. It's just a
question whether it's worth the effort).

I have made my solution available on http://www.ib-paus.com/downloads . If you
like you can have a look at it.

Michael



  reply	other threads:[~2002-03-26 18:25 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-25 19:45 Last stream problem: byte order Erik Sigra
2002-03-25 22:28 ` Jeffrey Carter
2002-03-25 22:36 ` Stephen Leake
2002-03-26  4:32 ` Eric G. Miller
2002-03-26 10:25 ` Dr. Michael Paus
2002-03-26 17:53   ` Pascal Obry
2002-03-26 18:25     ` Dr. Michael Paus [this message]
2002-03-26 19:25       ` Pascal Obry
2002-03-27 15:37   ` Erik Sigra
2002-03-27 18:12     ` Dr. Michael Paus
2002-03-28  2:24       ` Eric G. Miller
2002-03-28 18:34         ` Stephen Leake
2002-03-28 18:38         ` Simon Wright
2002-03-29  2:08           ` Eric G. Miller
2002-03-29  6:52             ` Simon Wright
2002-03-29  7:06               ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox