comp.lang.ada
 help / color / mirror / Atom feed
From: martin.dowie@btopenworld.com (Martin Dowie)
Subject: Re: Efficient Stream_IO
Date: 15 Apr 2004 01:13:24 -0700
Date: 2004-04-15T01:13:24-07:00	[thread overview]
Message-ID: <af783afe.0404150013.3bc64e88@posting.google.com> (raw)
In-Reply-To: uhdvmgwt4.fsf@obry.org

Pascal Obry <pascal@obry.org> wrote in message news:<uhdvmgwt4.fsf@obry.org>...
> Lutz Donnerhacke <lutz@iks-jena.de> writes:
> 
> > And how will one convert from String to Stream_Element_Array?
> 
> With a loop if Stream_Element'Size /= Character'Size and with a simple
> Unchecked_Conversion otherwise. The second solution is very fast and will
> work in 99,9% (100%???) of the cases.

You don't even need a loop if one is a multiple of the other, which
is, I guess, the most likely scenario.



      reply	other threads:[~2004-04-15  8:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-13  8:38 Efficient Stream_IO Lutz Donnerhacke
2004-04-13 11:12 ` Stephen Leake
2004-04-13 11:32   ` Lutz Donnerhacke
2004-04-14 19:54     ` Pascal Obry
2004-04-15  8:13       ` Martin Dowie [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox