comp.lang.ada
 help / color / mirror / Atom feed
From: stt@dsd.camb.inmet.com (Tucker Taft)
Subject: Re: How does the Ada 95 Streams package Index?
Date: Sat, 17 Dec 1994 14:05:27 GMT
Date: 1994-12-17T14:05:27+00:00	[thread overview]
Message-ID: <D0yKH4.8Mw@inmet.camb.inmet.com> (raw)
In-Reply-To: 3cra2n$rio@ixnews1.ix.netcom.com

In article <3cra2n$rio@ixnews1.ix.netcom.com>,
Timothy Halloran <halloran@ix.netcom.com> wrote:

>From examining the Ada 95 reference manual I get the impression that
>a file created with the streams package is able to move to numbered
>records in the file (e.g. Read the 5th record).  How is this intended
>to be implemented in light of the variable length of the records which
>could be in the file?  Are all the records expanded to the largest size
>or are divider bytes inserted in the file.

The positioning is by Stream_Element, not by record.   A Stream_Element
is expected to be a byte on most systems, so this is simply lo-tech
seek-to-specified-byte, something that is available on (almost ;-)
every operating system.

>GNAT doesn't have this package yet (but soon will I am told) so I
>haven't been able to "test" this package out.  Anyone up on this?

See above.

>A Humble Ada Programmer,
>Tim Halloran

-Tucker Taft  stt@inmet.com



      parent reply	other threads:[~1994-12-17 14:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-12-16  5:54 How does the Ada 95 Streams package Index? Timothy Halloran
1994-12-16 12:58 ` Robert I. Eachus
1994-12-16 15:16 ` Robert Dewar
1994-12-17 14:05 ` Tucker Taft [this message]
replies disabled

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