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,2370fc34f084c855 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-03 07:37:45 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: creating a 16 bit value from 2 8 bit values in Ada Date: 3 Aug 2002 07:37:45 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0208030637.3fcf6f15@posting.google.com> References: NNTP-Posting-Host: 205.232.38.14 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1028385465 23583 127.0.0.1 (3 Aug 2002 14:37:45 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 3 Aug 2002 14:37:45 GMT Xref: archiver1.google.com comp.lang.ada:27653 Date: 2002-08-03T14:37:45+00:00 List-Id: Stephen Leake wrote in message news:... > One advantage of this version is it should take no code. No, it is probably much less efficient, because it forces things into memory. > One drawback > is you have to get the byte-endianness right. A big drawback. This is definitely not the right approach.