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 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,671b5d2d09a675ef X-Google-Attributes: gid103376,public From: tmoran@bix.com (Tom Moran) Subject: Re: How do I use ADA to calculate a checksum? Date: 1997/09/23 Message-ID: <3428260f.18587022@SantaClara01.news.InterNex.Net>#1/1 X-Deja-AN: 274957703 References: <3427DF0F.4467@scarecrow.gcs.redstone.army.mil> Organization: InterNex Information Services 1-800-595-3333 Newsgroups: comp.lang.ada Date: 1997-09-23T00:00:00+00:00 List-Id: I presume you want to calculate a byte or word-wise checksum on data which is a record (ie, not an array of bytes or words)? Yoy can delcare an array of bytes/words and use a representation clause to make it overlay, ie, start at the same address as, the record. Then just run through the array calculating the checksum, CRC, or whatever. If you are passed an Access type rather than an Address, use the appropriate function in System.Address_To_Access_Conversions to get an Address.