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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,c689b55786a9f2bd X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!newsfeed.straub-nv.de!uucp.gnuu.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Mon, 10 May 2010 22:24:30 +0200 From: Georg Bauhaus Reply-To: rm.tsoh-bauhaus@maps.futureapps.de User-Agent: Mozilla-Thunderbird 2.0.0.24 (X11/20100329) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: for S'Image use Func?? References: <4be417b4$0$6992$9b4e6d93@newsspool4.arcor-online.net> <1qcb6z4i20dyb.1dz2hd4c0vx69.dlg@40tude.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4be8798f$0$6987$9b4e6d93@newsspool4.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 10 May 2010 23:24:31 CEST NNTP-Posting-Host: b9acb778.newsspool4.arcor-online.net X-Trace: DXC=mKQHTe3O=4e9kIfcjg:0fd4IUKejVh1c[IXal<0kf^CGgZcNiOJk X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:11473 Date: 2010-05-10T23:24:31+02:00 List-Id: Maciej Sobczak wrote: > Coming back to I/O - what I miss in Ada is the equivalent of fread in > C - that is, an operation that reads *up to* the given number of > bytes. Or maybe there is something that I didn't notice? Such an > operation is an important basis for custom buffered input. Without it > the only way to reinvent a proper I/O is via direct bindings to system- > level API. Streams.Read and overridings should achieve this? Read fills an array of a given size with up to at most the array's length stream_elements.