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=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4ee2a5f4acf6349b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-09-10 14:32:42 PST Path: archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.icl.net!newsfeeds.belnet.be!news.belnet.be!psinet-eu-nl!psiuk-p4!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: "sizeof" a record Date: Mon, 10 Sep 2001 16:23:04 -0400 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: <9nj7fa$e53$1@nh.pace.co.uk> References: <9nj40t$qbr$1@zeus.orl.lmco.com> NNTP-Posting-Host: dhcp-200-133.miami.pace.co.uk X-Trace: nh.pace.co.uk 1000153386 14499 136.170.200.133 (10 Sep 2001 20:23:06 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 10 Sep 2001 20:23:06 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:13013 Date: 2001-09-10T20:23:06+00:00 List-Id: You should be able to do Record_Type'Size or Record_Object'Size which returns the size in bits. You probably want to divide by System.Storage_Unit to get the size in bytes. (If your machine has System.Storage_Unit = 8) Read through Annex K of the ARM - you'll find lots of useful attributes there that are especially handy for low level programming or dealing with machine dependencies. MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com Web: http://www.mcondic.com/ "mop" wrote in message news:9nj40t$qbr$1@zeus.orl.lmco.com... > > how do i obtain the "sizeof" a record? > > I've got 8 bytes of data for one record > and 517 bytes for another > > > >