From mboxrd@z Thu Jan 1 00:00:00 1970 Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.hispagatos.org!news.nntp4.net!pasdenom.info!.POSTED.2a01:e0a:472:70f0:9dc:978a:d921:8ff3!not-for-mail From: DrPi <314@drpi.fr> Newsgroups: comp.lang.ada Subject: Re: In memory Stream Date: Sat, 17 Feb 2024 15:42:13 +0100 Organization: Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sat, 17 Feb 2024 14:42:14 -0000 (UTC) Injection-Info: rasp.pasdenom.info; posting-account="314@usenet"; posting-host="2a01:e0a:472:70f0:9dc:978a:d921:8ff3"; logging-data="25464"; mail-complaints-to="abuse@pasdenom.info" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:bp5B9L0XA2PBo3yao3OklAD+MaI= sha256:uGhEER6gZtcwpKsO38QasZ8EVnxeeZAj8axmInxpHfw= sha1:GBGTsNXZ7EE1777D8qm7khz7Jag= sha256:1frMFWAEisPUAYEsMLTaGmsh9n/s2754cVTF/mmuVpE= Content-Language: fr, en-US In-Reply-To: Xref: news.eternal-september.org comp.lang.ada:66076 List-Id: Le 17/02/2024 à 15:26, J-P. Rosen a écrit : > Le 17/02/2024 à 14:36, DrPi a écrit : > > The library Jean-Pierre pointed me to perfectly matches this usage. > Light and easy to use. Thanks. > :-) > > > One enhancement I see is to manage the buffer size to avoid buffer > overflow (or did I missed something ?). > > I don't see what you mean here... On the memory side, we are > reading/writing bytes from memory, there is no notion of overflow. And > the number of bytes processed by Read/Write is given by the size of > Item, so no overflow either... > A memory buffer IS limited in size. It is either a peripheral buffer or a memory buffer you create yourself (my case). In either case, its size is limited. When writing in the stream, you have to care to not overflow the buffer.