From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fad7b049cb669896 X-Google-Attributes: gid103376,public From: david_jones_98@yahoo.com Subject: Re: Ada95 Streams Date: 1998/12/03 Message-ID: <745ufc$n22$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 418205977 References: <742rpk$2t4$1@nnrp1.dejanews.com> X-Http-Proxy: 1.0 proxy.camtech.net.au:88 (Squid/2.1.PATCH1), 1.0 x2.dejanews.com:80 (Squid/1.1.22) for client unknown, 203.23.145.162 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Thu Dec 03 11:59:41 1998 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (Win95; I) Date: 1998-12-03T00:00:00+00:00 List-Id: > 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