From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f25e636d6b770960 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-26 10:25:56 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.icl.net!colt.net!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news-fra1.dfn.de!news-fra.pop.de!schlund.de!news.online.de!not-for-mail From: "Dr. Michael Paus" Newsgroups: comp.lang.ada Subject: Re: Last stream problem: byte order Date: Tue, 26 Mar 2002 19:25:53 +0100 Organization: =?iso-8859-1?Q?Ingenieurb=FCro?= Dr. Paus Message-ID: <3CA0BD31.ECE7528E@ib-paus.com> References: <3CA04CA6.338B37D7@ib-paus.com> NNTP-Posting-Host: p508302a8.dip0.t-ipconnect.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.online.de 1017167154 14031 80.131.2.168 (26 Mar 2002 18:25:54 GMT) X-Complaints-To: abuse@online.de NNTP-Posting-Date: 26 Mar 2002 18:25:54 GMT X-Mailer: Mozilla 4.78 [de] (Win98; U) X-Accept-Language: de Xref: archiver1.google.com comp.lang.ada:21692 Date: 2002-03-26T18:25:54+00:00 List-Id: Pascal Obry wrote: > > "Dr. Michael Paus" 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