From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.8 required=3.0 tests=BAYES_50,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:a05:622a:148a:: with SMTP id t10mr5433595qtx.214.1621356631702; Tue, 18 May 2021 09:50:31 -0700 (PDT) X-Received: by 2002:a25:e753:: with SMTP id e80mr8837966ybh.277.1621356631491; Tue, 18 May 2021 09:50:31 -0700 (PDT) Path: eternal-september.org!reader02.eternal-september.org!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 18 May 2021 09:50:31 -0700 (PDT) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=146.5.2.231; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC NNTP-Posting-Host: 146.5.2.231 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <247c7317-13ab-436b-ac9c-31f594c40b73n@googlegroups.com> Subject: Re: Better way to fill Storage_IO? From: Shark8 Injection-Date: Tue, 18 May 2021 16:50:31 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:62006 List-Id: On Monday, May 17, 2021 at 12:44:05 PM UTC-6, mhard wrote: Here's an implementation of a string-as-a-stream: https://stackoverflow.com= /a/66971547/608963 It was used in a JSON parser, so you certainly can use it for parsing... ac= tually the idea here: to have a single production-method shared by stream a= nd string [and file] is really quite nice maintenance-wise, even if you hav= e to jump through a few hoops (like constructing this stream-string type) i= n order to obtain it.