From mboxrd@z Thu Jan 1 00:00:00 1970 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: In memory Stream Date: Fri, 16 Feb 2024 20:19:42 +0000 Organization: A noiseless patient Spider Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain Injection-Info: dont-email.me; posting-host="79783ed61c67bd8801b30e08ff82d57b"; logging-data="23925"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19tv6ATmhaQwtbwfjsWlX3j/J5Y+7RrYO4=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin) Cancel-Lock: sha1:lstWWCosEaMZxcFdKprE+E60T6Y= sha1:FjLf4R37/N6Krp4CisCqZnhHIPo= Xref: news.eternal-september.org comp.lang.ada:66063 List-Id: DrPi <314@drpi.fr> writes: > Hi, > > I want to transfert some data between applications through a memory buffer. > The buffer transfert between applications is under control. > My problem is with the buffer content. > I though I'll use a Stream writing/reading in/from the memory > buffer. How can I achieve this ? I've found no example doing this. > Note : I use Ada 2012. > > Nicolas A spec and body for an implementation I've had since 2008: https://github.com/simonjwright/coldframe/blob/alire/src/common/coldframe-memory_streams.ads https://github.com/simonjwright/coldframe/blob/alire/src/common/coldframe-memory_streams.adb