comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeff C r e e.m" <jcreem@yahoo.com>
Subject: Re: GNAT Ada.Streams Bug?
Date: Thu, 25 Nov 2004 19:40:32 GMT
Date: 2004-11-25T19:40:32+00:00	[thread overview]
Message-ID: <Myqpd.565108$mD.208023@attbi_s02> (raw)
In-Reply-To: fOopd.59177$Le1.1221311@news20.bellglobal.com


"Warren W. Gay VE3WWG" <ve3wwg@NoSPAM.cogeco.ca> wrote in message 
news:fOopd.59177$Le1.1221311@news20.bellglobal.com...
> This is on gnat-3.14p on debian (debian's package library doesn't
> seem to provide 3.15p), so this may be fixed by now:
>
> I am running into a Ada.Streams problem with 24 bit values (3 bytes).
> For example, if you use Ada.Streams to read in a partition table,
> defined as follows, with 3.14p, you'll read more bytes than needed
> (thus messing things up):
>

These might be helpful

http://groups.google.com/groups?hl=en&lr=&threadm=t3f6rg54jlkfee%40corp.supernews.com&rnum=2&prev=/groups%3Fq%3Dstreams%2Bcreem%2Bsize%26hl%3Den%26lr%3D%26selm%3Dt3f6rg54jlkfee%2540corp.supernews.com%26rnum%3D2

http://groups.google.com/groups?q=streams+creem+size&hl=en&lr=&selm=t739enmlcvuo2d%40corp.supernews.com&rnum=1

http://www.ada-auth.org/cgi-bin/cvsweb.cgi/AIs/AI-00270.TXT?rev=1.6


In any case, you can "work around" this and get more efficient code to boot 
by writing your own 'read and 'write for  your record to read the whole
"hunk" of data in at once (based on the 'size of the record in terms of 
stream elements).






  reply	other threads:[~2004-11-25 19:40 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-25 17:41 GNAT Ada.Streams Bug? Warren W. Gay VE3WWG
2004-11-25 19:40 ` Jeff C r e e.m [this message]
2004-11-26  4:11   ` Warren W. Gay VE3WWG
2004-11-26  9:49     ` Georg Bauhaus
2004-11-26 17:30       ` Warren W. Gay VE3WWG
2004-11-27  7:34         ` Martin Krischik
2004-11-28  1:10           ` Warren W. Gay VE3WWG
2004-11-29  7:50         ` tmoran
2004-11-29 17:47           ` Warren W. Gay VE3WWG
2004-11-26 22:47     ` Simon Wright
2004-11-27 14:42       ` Warren W. Gay VE3WWG
2004-11-27 17:25         ` 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