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,38ceb882eed41e1e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-11 03:20:08 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!195.27.83.146!news-FFM2.ecrc.net!news.iks-jena.de!lutz From: lutz@iks-jena.de (Lutz Donnerhacke) Newsgroups: comp.lang.ada Subject: Re: Size and pack Date: Thu, 11 Oct 2001 10:19:52 +0000 (UTC) Organization: IKS GmbH Jena Message-ID: References: <9ff447f2.0110100005.2503bb00@posting.google.com> <3BC57091.51ECCE8D@CCI.Sema.de> NNTP-Posting-Host: taranis.iks-jena.de X-Trace: branwen.iks-jena.de 1002795592 32115 217.17.192.37 (11 Oct 2001 10:19:52 GMT) X-Complaints-To: usenet@iks-jena.de NNTP-Posting-Date: Thu, 11 Oct 2001 10:19:52 +0000 (UTC) User-Agent: slrn/0.9.6.3 (Linux) Xref: archiver1.google.com comp.lang.ada:14235 Date: 2001-10-11T10:19:52+00:00 List-Id: * Vincent Smeets wrote: >Adrian Hoe wrote: >> type Rx_Header_Data is >> record >> Start_Byte : Character := Latin_1.STX; >> Splitter : Character; >> Command_Byte : Character; >> Pad_Byte_1 : Character; >> Pad_Byte_2 : Character; >> Log_Num : Interfaces.C.Long; >> End_Byte : Character := Latin_1.ETX; >> LRC : Character; >> end record; > >Just an other view and a question to CLA, > >If you read and write this record thrue a stream, will you then get the >correct byte layout (with Log_Num at an odd byte)? I do not see a reason for expecting it. The Implementation may choose to start with a type marker and than dumps the current memory area.