From: Ted Dennison<dennison@telepath.com>
Subject: Re: Ada and Internet stuff
Date: Wed, 29 Aug 2001 20:08:41 GMT
Date: 2001-08-29T20:08:41+00:00 [thread overview]
Message-ID: <dZbj7.2852$T4.26368@www.newsranger.com> (raw)
In-Reply-To: pQaj7.28143$sa.14123276@news1.rdc1.sfba.home.com
In article <pQaj7.28143$sa.14123276@news1.rdc1.sfba.home.com>, 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
next prev parent reply other threads:[~2001-08-29 20:08 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-24 19:22 Ada and Internet stuff Darren New
2001-08-24 19:39 ` Ted Dennison
2001-08-24 20:30 ` Pascal Obry
2001-08-24 22:03 ` Ehud Lamm
2001-08-26 15:52 ` David Botton
2001-08-26 20:32 ` Pascal Obry
2001-08-27 1:40 ` David Botton
2001-08-27 6:31 ` Ehud Lamm
2001-08-24 20:32 ` Pascal Obry
2001-08-24 23:36 ` Darren New
2001-08-24 20:39 ` Larry Kilgallen
2001-08-24 22:08 ` Marc A. Criley
2001-08-25 7:07 ` Pascal Obry
2001-08-27 1:49 ` tmoran
2001-08-27 11:04 ` Tarjei T. Jensen
2001-08-27 11:28 ` Ehud Lamm
2001-08-27 20:09 ` Pascal Obry
2001-08-27 23:10 ` David Botton
2001-08-29 5:52 ` tmoran
2001-08-29 16:28 ` Darren New
2001-08-29 17:12 ` David Botton
2001-08-29 17:32 ` Ted Dennison
2001-08-29 18:51 ` tmoran
2001-08-29 19:00 ` Darren New
2001-08-29 19:53 ` tmoran
2001-08-29 20:03 ` Darren New
2001-08-29 20:08 ` Ted Dennison [this message]
2001-08-30 7:08 ` tmoran
2001-08-31 2:39 ` tmoran
2001-08-31 13:34 ` Ted Dennison
2001-08-31 13:46 ` Marin David Condic
2001-08-31 17:37 ` tmoran
2001-08-31 17:59 ` Marin David Condic
2001-09-01 17:56 ` tmoran
2001-08-31 13:34 ` Marin David Condic
2001-08-31 17:52 ` Ted Dennison
2001-08-31 18:09 ` Marin David Condic
2001-08-31 2:53 ` compile time Least Common Multiple, was " tmoran
2001-08-31 13:43 ` Ted Dennison
2001-08-31 17:37 ` tmoran
2001-08-31 18:08 ` Ted Dennison
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox