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.5 required=5.0 tests=BAYES_00,FROMSPACE, FROM_ADDR_WS,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a883dc07df0d6bb1 X-Google-Attributes: gid103376,public From: " "@deneb.cygnus.argh.org (Florian Weimer) Subject: Re: Decoding an octet stream Date: 1999/11/30 Message-ID: <87puwsmizb.fsf@deneb.cygnus.argh.org>#1/1 X-Deja-AN: 555736537 References: <877lj2q36g.fsf@deneb.cygnus.argh.org> <81u247$kc3$1@hobbes2.crc.com> Mail-Copies-To: never Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@cygnus.argh.org X-Trace: deneb.cygnus.argh.org 943953768 15146 192.168.1.2 (30 Nov 1999 09:22:48 GMT) Organization: Penguin on board User-Agent: Gnus/5.070099 (Pterodactyl Gnus v0.99) Emacs/20.4 Mime-Version: 1.0 NNTP-Posting-Date: 30 Nov 1999 09:22:48 GMT Newsgroups: comp.lang.ada Date: 1999-11-30T09:22:48+00:00 List-Id: "David C. Hoos, Sr." writes: > if System.Default_Bit_Order = System.Low_Order_First then > Swap (The_Bytes); > end if; Does this really work? I thought that System.Default_Bit_Order hasn't got to do anything with octet ordering issues (aka endianess). After all, there are more than just two methods of combining four octets to a 32 bit integer (for example).