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.6 required=5.0 tests=BAYES_00,LOTS_OF_MONEY, TO_NO_BRKTS_FROM_MSSP autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bffcdbd805329ff8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-29 13:08:45 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!feed.textport.net!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: <3B8D181E.8C9523D@san.rr.com> Subject: Re: Ada and Internet stuff Message-ID: X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Wed, 29 Aug 2001 16:08:41 EDT Organization: http://www.newsranger.com Date: Wed, 29 Aug 2001 20:08:41 GMT Xref: archiver1.google.com comp.lang.ada:12580 Date: 2001-08-29T20:08:41+00:00 List-Id: In article , tmoran@acm.org says... >of input and encodes it in 4 output text characters. But the code >to automagically adjust to Stream_Elements that aren't 8 bits wide >would, I suspect, be substantally less clear, and rarely used, so >my base64 routine doesn't do it. I thought about putting in >a test that Stream_Element'size=8, but decided, again for simplicity >and clarity vs frequency of use, to settle for a comment instead. >Full generality might be an interesting exercise. It only takes about 2 declarations to do this, and the resulting constants can be named whatever is clearest for you (I usually use something like "Foos_Per_Stream_Element"). But that assumes that you are using Unchecked_Conversion to convert between your source data type and Stream_Element_Array. If you wanted to actually use Stream_Element *as* your source data type, assuming a certian size would probably simplify matters. --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html home email - mailto:dennison@telepath.com