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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2a77c9c618b7919 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.66.86.39 with SMTP id m7mr4597091paz.4.1351055022109; Tue, 23 Oct 2012 22:03:42 -0700 (PDT) Path: 6ni20038pbd.1!nntp.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Ada.Storage_IO: applied example? Date: Wed, 24 Oct 2012 07:03:43 +0200 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Injection-Date: Wed, 24 Oct 2012 05:03:41 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="709a3b9124d052b085bf6fc3f0a2adab"; logging-data="6069"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+dZyZ0Q/FrXLPQFjrqwve1" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 In-Reply-To: Cancel-Lock: sha1:lD7FZmCwr4UrHDf22KwcmgUJsYk= X-Enigmail-Version: 1.4.5 X-Received-Bytes: 1831 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Date: 2012-10-24T07:03:43+02:00 List-Id: Le 23/10/2012 22:28, Dmitry A. Kazakov a �crit : > On Tue, 23 Oct 2012 21:42:43 +0200, Yannick Duch�ne (Hibou57) wrote: > >> I'm seeking for a tiny use case showing `Ada.Storage_IO` in action. > > It looks useless at first glance. The buffer size is fixed and > implementation defined(!). Why would anybody use that rather than plain > array? > Imagine you want to implement a binary IO package. On one side you have high level data type, on the other side system files that are just blocks of bytes. Storage_IO allows you to bridge this gap (at least that's my understanding). -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr