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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c23aab5ad8118734,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!not-for-mail From: ssh9614@hotmail.com (Bj?rn) Newsgroups: comp.lang.ada Subject: Record size Date: 23 Mar 2005 06:11:39 -0800 Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 194.237.142.10 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1111587100 5380 127.0.0.1 (23 Mar 2005 14:11:40 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 23 Mar 2005 14:11:40 +0000 (UTC) Xref: g2news1.google.com comp.lang.ada:9800 Date: 2005-03-23T06:11:39-08:00 List-Id: How can I check the size of a record, including one/several array components, without having the array bounds included in the result? I want to save the record size before writing it on a socket with �Write. It would be very convenient if I could do this without having to manually subtract the bounds size / counting record component sizes. Is this possible in Ada? If not, might there be some GNAT specific attribute that might do the trick? Thanks, Bj�rn