From mboxrd@z Thu Jan 1 00:00:00 1970 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: In memory Stream Date: Sat, 17 Feb 2024 15:26:45 +0100 Organization: Adalog 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:26:44 -0000 (UTC) Injection-Info: dont-email.me; posting-host="1d8e63bd7ad1c4d3131a39d072e680eb"; logging-data="483355"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+wWtyKWHvjuVP/ylZaEZfN" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:nSipcjwdkFFIhcujMuToP2wFFLE= In-Reply-To: Content-Language: en-US, fr Xref: news.eternal-september.org comp.lang.ada:66074 List-Id: 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... -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX https://www.adalog.fr https://www.adacontrol.fr