comp.lang.ada
 help / color / mirror / Atom feed
From: dennison@telepath.com (Ted Dennison)
Subject: Re: In-memory Streams
Date: 15 Apr 2002 07:56:29 -0700
Date: 2002-04-15T14:56:29+00:00	[thread overview]
Message-ID: <4519e058.0204150656.e8d2e7a@posting.google.com> (raw)
In-Reply-To: a9e61a$2dgdq$1@ID-107015.news.dfncis.de

"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



  parent reply	other threads:[~2002-04-15 14:56 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 [this message]
2002-04-15 15:06   ` Nazgul
2002-04-15 15:20   ` Ken Burtch
  -- 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