From: James Rogers <jimmaureenrogers@worldnet.att.net>
Subject: Re: Streams in Ada
Date: Sat, 31 Mar 2001 20:48:35 GMT
Date: 2001-03-31T20:48:35+00:00 [thread overview]
Message-ID: <3AC64324.A79AE084@worldnet.att.net> (raw)
In-Reply-To: v7mx6.7111$MZ2.1190619@news2-win.server.ntlworld.com
I assume from your use of the term "streams" that you want to be able
to directly address file elements. "Streams" is the C term for such
capability. Ada uses streams for a somewhat different capability.
I believe what you want is handled by the package Ada.Direct_Io.
Look in the Ada Reference Manual, Appendix A, for details on this
package.
Jim Rogers
Colorado Springs, Colorado USA
"chris.danx" wrote:
>
> Hi,
> I've looked about for examples on streams in Ada. I'm writing an
> virtual file system as a file on disk, and want to use streams. I have to
> be able to go back and forwards and read large blocks of data from the file
> at random positions. I have tried to locate an example of using streams but
> couldn't find any that didn't deal with sequential access.
>
> the first block is 512 bytes and inodes are 64bytes. then i have a set of
> blocks which are 16bytes long. you can see now why i'm using streams, but i
> can't seem to work out from the ref manual and Barnes what i should do. I
> recall the ref manual saying index is relative to stream element but i don't
> know what it means. Anyone know of a good example?
>
> Thanks in advance,
> Chris Campbell
next prev parent reply other threads:[~2001-03-31 20:48 UTC|newest]
Thread overview: 50+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-31 14:49 Streams in Ada chris.danx
2001-03-31 15:22 ` chris.danx
2001-03-31 21:37 ` Jeff Creem
2001-03-31 21:49 ` chris.danx
2001-03-31 22:21 ` Robert A Duff
2001-03-31 22:33 ` chris.danx
2001-04-02 13:47 ` Ted Dennison
2001-04-02 14:03 ` Florian Weimer
2001-04-02 14:29 ` Ted Dennison
2001-04-02 14:54 ` Robert A Duff
2001-04-02 14:47 ` Marin David Condic
2001-04-02 15:10 ` Florian Weimer
2001-04-02 15:49 ` Ted Dennison
2001-04-02 16:57 ` Marin David Condic
2001-04-02 17:43 ` PDP-10, was " tmoran
2001-04-02 17:49 ` Robert A Duff
2001-04-02 22:09 ` 6-bit characters (was: Re: Streams in Ada) Jeffrey Carter
2001-04-02 23:29 ` Robert A Duff
2001-04-03 16:41 ` Jeffrey Carter
2001-04-03 17:57 ` Florian Weimer
2001-04-03 18:19 ` Marin David Condic
2001-04-05 18:37 ` Tucker Taft
2001-04-03 18:04 ` Marin David Condic
2001-04-06 22:40 ` Robert A Duff
2001-04-03 14:10 ` Marin David Condic
2001-04-03 1:57 ` Streams in Ada Larry Kilgallen
2001-04-03 14:13 ` Marin David Condic
2001-04-13 23:21 ` Robert A Duff
2001-04-02 17:41 ` Florian Weimer
2001-04-02 18:17 ` Robert A Duff
2001-04-02 19:36 ` Marin David Condic
2001-04-02 20:54 ` Robert A Duff
2001-04-03 10:10 ` Florian Weimer
2001-04-03 14:21 ` Marin David Condic
2001-04-03 18:15 ` Florian Weimer
2001-04-03 23:21 ` Robert A Duff
2001-04-02 21:13 ` Florian Weimer
2001-04-02 21:22 ` Robert A Duff
2001-04-03 10:02 ` Florian Weimer
2001-04-02 16:42 ` Marin David Condic
2001-04-13 5:00 ` David Thompson
2001-03-31 20:48 ` James Rogers [this message]
2001-03-31 21:20 ` chris.danx
2001-03-31 21:22 ` chris.danx
2001-03-31 23:10 ` David C. Hoos, Sr.
2001-04-01 11:27 ` chris.danx
2001-04-02 14:12 ` Ted Dennison
2001-04-02 14:00 ` Ted Dennison
-- strict thread matches above, loose matches on Subject: below --
2001-04-05 14:24 Brian Gaffney
2001-04-06 22:54 ` Robert A Duff
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox