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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,10c4f504305837f2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-04-14 12:54:20 PST Path: archiver1.google.com!news1.google.com!news.glorb.com!news.cs.univ-paris8.fr!proxad.net!wanadoo.fr!not-for-mail From: Pascal Obry Newsgroups: comp.lang.ada Subject: Re: Efficient Stream_IO Date: 14 Apr 2004 21:54:15 +0200 Organization: Home - http://perso.wanadoo.fr/pascal.obry Message-ID: References: NNTP-Posting-Host: avelizy-103-1-5-81.w80-13.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news-reader2.wanadoo.fr 1081972459 6878 80.13.115.81 (14 Apr 2004 19:54:19 GMT) X-Complaints-To: abuse@wanadoo.fr NNTP-Posting-Date: 14 Apr 2004 19:54:19 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.95 Xref: archiver1.google.com comp.lang.ada:7105 Date: 2004-04-14T19:54:19+00:00 List-Id: Lutz Donnerhacke 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. Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.org --| "The best way to travel is by means of imagination" --| --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595