comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@cs.nyu.edu (Robert Dewar)
Subject: Re: How does the Ada 95 Streams package Index?
Date: 16 Dec 1994 10:16:37 -0500
Date: 1994-12-16T10:16:37-05:00	[thread overview]
Message-ID: <3csb0l$mu1@gnat.cs.nyu.edu> (raw)
In-Reply-To: 3cra2n$rio@ixnews1.ix.netcom.com

Tim, your question on stream files is confusing, streams do not have any
concept of records. Indeed that might be considered to be THE
distinguishing characteristic of streams. Certainly there is no filling
out of these (non-existent) records to their maximum size.

The Set_Index function is like lseek in C, although a little more
abstracted. It sets the position to the indicated storage element.
If you are writing "variable length records" to the stream, it is
up to the program to know the proper starting position for a record
that you want to point to (possibly by use of the Index function).

Actually, if you think of record = one storage element, then your
view of things is correct, but then of course there is no issue
of variable length records, or filling out a record to its maximum
size :-)




  parent reply	other threads:[~1994-12-16 15:16 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 [this message]
1994-12-17 14:05 ` Tucker Taft
replies disabled

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