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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,604393fcefde729a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-15 07:56:29 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!postnews1.google.com!not-for-mail From: dennison@telepath.com (Ted Dennison) Newsgroups: comp.lang.ada Subject: Re: In-memory Streams Date: 15 Apr 2002 07:56:29 -0700 Organization: http://groups.google.com/ Message-ID: <4519e058.0204150656.e8d2e7a@posting.google.com> References: NNTP-Posting-Host: 65.115.221.98 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1018882589 11473 127.0.0.1 (15 Apr 2002 14:56:29 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 15 Apr 2002 14:56:29 GMT Xref: archiver1.google.com comp.lang.ada:22553 Date: 2002-04-15T14:56:29+00:00 List-Id: "Nazgul" wrote in message news:... > 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