From: Ken Burtch <kburtch@sympatico.ca>
Subject: Re: In-memory Streams
Date: Mon, 15 Apr 2002 11:20:08 -0400
Date: 2002-04-15T11:20:08-04:00 [thread overview]
Message-ID: <3CBAEFA8.F331E38E@sympatico.ca> (raw)
In-Reply-To: 4519e058.0204150656.e8d2e7a@posting.google.com
There is an in-memory stream example in the Big Online Book of Linux Ada
Programming:
http://www.pegasoft.ca/homes/11.html#11.12
Ken B.
Ted Dennison wrote:
>
> "Nazgul" <darkelf@aim.homelinux.com> wrote in message news:<a9e61a$2dgdq$1@ID-107015.news.dfncis.de>...
> > Hi, I need to create a 512 bytes buffer in memory, in which I can write date
> > like in a stream ('output). Then, when the buffer is full, I have to write
> > it to a file, for example with Buffer'Output, or once byte each time, but
> > the raw content, no headers or something, just the raw 512 bytes.
> >
> > Where should I begin to look at? Something to do with storage pools?
>
> It sounds pretty simple to me. You just need to derive a type from
> Ada.Streams.Root_Stream_Type, then write your own versions of Read and
> Write (see the package spec in the ARM at
> http://www.ada-auth.org/~acats/arm-html/RM-13-13-1.html ). I don't
> know why you think storage pools would need to get involved.
>
> --
> T.E.D.
> Home - mailto:dennison@telepath.com (Yahoo: Ted_Dennison)
> Homepage - http://www.telepath.com/dennison/Ted/TED.html
--
Ken O. Burtch: http://www.pegasoft.ca : Pegasoft
System Manager in a Box / Business Shell : R.R.#1
Bio: 36;Bsc,UI,Lang,Games;Toons,Elves,SF,Pizza;Xian : Jordan Station,
ON
``````````````````````````````````````````````````````` Canada L0R 1S0
next prev parent reply other threads:[~2002-04-15 15:20 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-15 9:20 In-memory Streams Nazgul
2002-04-15 10:15 ` David C. Hoos, Sr.
2002-04-15 10:23 ` Nazgul
2002-04-15 14:52 ` Ted Dennison
2002-04-15 13:07 ` Nazgul
2002-04-15 14:56 ` Ted Dennison
2002-04-15 15:06 ` Nazgul
2002-04-15 15:20 ` Ken Burtch [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-11-13 21:23 In-memory streams Victor Porton
2017-11-14 5:51 ` Per Sandberg
2017-11-14 6:22 ` bj.mooremr
2017-11-14 7:17 ` gautier_niouzes
2017-11-14 9:08 ` Jacob Sparre Andersen
2017-11-14 9:31 ` Dmitry A. Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox