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,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7876e4356325725b X-Google-Attributes: gid103376,public From: dennison@telepath.com Subject: Re: Ada.Streams examples Date: 1999/03/10 Message-ID: <7c6q9p$g28$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 453532839 References: <36e61db4.50430543@news.pacbell.net> <7c64kl$r8s$1@nnrp1.dejanews.com> <36E6C291.F97766CB@Boeing.com> X-Http-Proxy: 1.0 x2.dejanews.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Wed Mar 10 22:04:48 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.5 [en] (WinNT; I) Date: 1999-03-10T00:00:00+00:00 List-Id: In article <36E6C291.F97766CB@Boeing.com>, Rex Reges wrote: > I would like to use Streams to create a similar package to Stream_IO, but write > to a memory object. If I have a "storage container", how can I fill it with > objects of varying types? How would I use Streams to do this? > I can probably give some advice here, as I have just written code to do that. But first, I'll need requirements clarification. IAW: How do you want to use it? Does it need to support concurrent 'Writes from multiple tasks? Does it need to support concurrent 'Writes with 'Reads? Should it act just like a file, where written items start at the first element and continue filling up the available space until it is exhausted? Or should it act like a circular buffer where 'Read's will free up space that may be used for later 'Writes? T.E.D. -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own