From: "J-P. Rosen" <rosen@adalog.fr>
Subject: Re: Ada.Storage_IO: applied example?
Date: Wed, 24 Oct 2012 07:03:43 +0200
Date: 2012-10-24T07:03:43+02:00 [thread overview]
Message-ID: <k67srd$5tl$1@dont-email.me> (raw)
In-Reply-To: <ywjs0tiunb78$.127928y2jnnd0$.dlg@40tude.net>
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
next prev parent reply other threads:[~2012-10-24 5:03 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-23 19:42 Ada.Storage_IO: applied example? Yannick Duchêne (Hibou57)
2012-10-23 20:28 ` Dmitry A. Kazakov
2012-10-23 20:56 ` Yannick Duchêne (Hibou57)
2012-10-23 21:21 ` Adam Beneschan
2012-10-23 21:02 ` Jeffrey Carter
2012-10-24 7:20 ` Dmitry A. Kazakov
2012-10-24 5:03 ` J-P. Rosen [this message]
2012-10-24 7:34 ` Dmitry A. Kazakov
2012-10-24 9:49 ` AdaMagica
2012-10-24 10:28 ` Dmitry A. Kazakov
2012-10-24 11:51 ` Yannick Duchêne (Hibou57)
2012-10-24 12:27 ` Dmitry A. Kazakov
2012-10-24 14:03 ` Georg Bauhaus
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox