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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!newsfeed.xs3.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Ada x Datagram Sockets Date: Mon, 11 Feb 2019 17:19:21 -0600 Organization: JSA Research & Innovation Message-ID: References: <47f17695-f9a5-4024-b2da-3f13209dc4fd@googlegroups.com><818f5ff4-f18d-42b8-950d-9b597c012aa4@googlegroups.com><62406dfb-54c9-4db3-b461-0ad72d4a782c@googlegroups.com> Injection-Date: Mon, 11 Feb 2019 23:19:22 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="11474"; mail-complaints-to="news@jacob-sparre.dk" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: reader01.eternal-september.org comp.lang.ada:55494 Date: 2019-02-11T17:19:21-06:00 List-Id: "Simon Wright" wrote in message news:ly5ztry1f8.fsf@pushface.org... > "Randy Brukardt" writes: ... > [1] not sure that FIFO_Streams offers this without copying the contents > out? It doesn't, but I'm not sure how it could. It's not possible for a single data type to be two different streams at the same time. Moreover, at least some of the time, the result isn't going to a stream at all. And I haven't personally seen a case where the extra cost of copying the data is significant (the target stream/API being much slower). I could see where it might matter, particularly in a transfer to some other kind of memory. Randy.