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.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY 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: Robert Dewar Subject: Re: Decoding an octet stream Date: 1999/12/02 Message-ID: <825v9j$9cg$1@nnrp1.deja.com>#1/1 X-Deja-AN: 555654435 References: <877lj2q36g.fsf@deneb.cygnus.argh.org> <81u247$kc3$1@hobbes2.crc.com> <821rc5$bim$1@nnrp1.deja.com> <822o4d$ehh$1@birch.prod.itd.earthlink.net> <8233fm$ngf$1@nntp3.atl.mindspring.net> <87bt8a2uvr.fsf@deneb.cygnus.argh.org> X-Http-Proxy: 1.0 x31.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Thu Dec 02 14:21:50 1999 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-12-02T00:00:00+00:00 List-Id: In article <87bt8a2uvr.fsf@deneb.cygnus.argh.org>, " "@deneb.cygnus.argh.org (Florian Weimer) wrote: > Perhaps I may ask again: Is it reasonable to assume that > Storage_Element'Size equals 8 (although the standard doesn't > require this, of course)? And, looking at David's code, does > System.Default_Bit_Order really reflect the byte-ordering? System.Default_Bit_Order has nothing whatsoever to do with byte ordering, and changing it does not affect byte ordering. This is a common misconception. Of course usually bit order and byte order should be the same or you get into trouble (this means incidentally that if you change it from the default, you are definitely likely to get into trouble :-) As to whether it is reasonable to assume 8, obviously this is not true of all machines, e.g. I assume it is 32 on the SHARC, and it is 24 on the original Intermetrics validation. But for most normal machines it will be 8. Sent via Deja.com http://www.deja.com/ Before you buy.