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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c23aab5ad8118734 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news1.google.com!proxad.net!usenet-fr.net!grolier!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!151.189.20.20.MISMATCH!newsfeed.arcor.de!news.arcor.de!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Record size Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.14.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: Date: Wed, 23 Mar 2005 16:38:11 +0100 Message-ID: <1l1cp6im8ie3j$.1qw9d6lc9d8iq.dlg@40tude.net> NNTP-Posting-Date: 23 Mar 2005 16:38:08 MET NNTP-Posting-Host: 3d37a9a8.newsread2.arcor-online.net X-Trace: DXC=B2ke<33lk0>E][lTbkER26Q5U85hF6f;4jW\KbG]kaM8]kI_X=5Kea6Ul26[mb<9>4[6LHn;2LCV>VVa[ZlQni_1HBT_Mj^RUD0 X-Complaints-To: abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:9804 Date: 2005-03-23T16:38:08+01:00 List-Id: On 23 Mar 2005 06:11:39 -0800, Bj?rn wrote: > 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. This wouldn't be portable. And if portability is not required then you can enjoy Ada.Streams which take that burden from you (provided that you won't use UDP.) Make your implementation of stream's Write writing into the socket. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de