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-Thread: 103376,e710f7d3f890e76b X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!62.111.101.3.MISMATCH!news.germany.com!news-stu1.dfn.de!news.uni-stuttgart.de!not-for-mail From: Stefan Bellon Newsgroups: comp.lang.ada Subject: Re: Base64-Encoding Date: Wed, 17 Oct 2007 16:07:03 +0200 Organization: Comp.Center (RUS), U of Stuttgart, FRG Message-ID: <20071017160703.3e80209e@cube.tz.axivion.com> References: <20071015161229.3f439230@cube.tz.axivion.com> <20071015165435.0eef160d@cube.tz.axivion.com> <20071015183919.79798fe6@cube.tz.axivion.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: infosun2.rus.uni-stuttgart.de 1192630037 7849 129.69.226.24 (17 Oct 2007 14:07:17 GMT) X-Complaints-To: news@news.uni-stuttgart.de NNTP-Posting-Date: Wed, 17 Oct 2007 14:07:17 +0000 (UTC) X-Newsreader: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; i486-pc-linux-gnu) X-URL: http://www.axivion.com/ Xref: g2news2.google.com comp.lang.ada:2471 Date: 2007-10-17T16:07:03+02:00 List-Id: On Tue, 16 Oct, Stephen Leake wrote: > Stefan Bellon writes: > > My basic idea is to define an array of Six_Bits and "overlay" this > > at the same address as the String with the usual 8-bit Character > > encoding. > > I think Adam is correct that this is non-portable. Thanks a lot to you (and Adam as well!) for your detailed and very informative replies. > AdaCore does not implement Bit_Order for machine sizes greater than 1 > (last I checked; a couple years ago). If they did, and applied > bit_order to this record, it would be endian-independent, and work the > way you expect. Yes, I am not forced to exactly do it this way. In fact, there have been discussions in this group explaining how to do it in several other ways. I was just wondering because my idea initially looked like such an elegant way. ;-) -- Stefan Bellon