comp.lang.ada
 help / color / mirror / Atom feed
From: david_jones_98@yahoo.com
Subject: Re: Ada95 Streams
Date: 1998/12/03
Date: 1998-12-03T00:00:00+00:00	[thread overview]
Message-ID: <745ufc$n22$1@nnrp1.dejanews.com> (raw)
In-Reply-To: F3Cn9t.Ew@jvdsys.stuyts.nl


> What I usually do, is to read the data into a block of memory, than use the
> System.Address_To_Access_Conversions package to create an access type and
> value to the records inside it.

Thanks for the reply, but it would be more difficult for me to use this
approach in my situation as the block of data I need to read from
contains variable length strings, and hence I need to first read a record
that contains the length of the string.

So my question still is, how do I implement a stream type from a buffer in
memory?

> The DLL2DEF package on my homepage uses this.

Nice page :), however it seems to me that in your program, you are using
stream_io where you could have used direct_io, ie. you aren't using the
sequential properties of the stream, but instead just read in the whole file.

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    




  reply	other threads:[~1998-12-03  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-02  0:00 Ada95 Streams david_jones_98
1998-12-02  0:00 ` Jerry van Dijk
1998-12-03  0:00   ` david_jones_98 [this message]
1998-12-03  0:00     ` Jerry van Dijk
1998-12-04  0:00     ` Richard D Riehle
1998-12-03  0:00 ` Srinivasan, R
1998-12-05  0:00 ` david.c.hoos.sr
replies disabled

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