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-Thread: 103376,c23aab5ad8118734 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 23 Mar 2005 13:00:26 -0600 From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Record size References: <1l1cp6im8ie3j$.1qw9d6lc9d8iq.dlg@40tude.net> X-Newsreader: Tom's custom newsreader Message-ID: Date: Wed, 23 Mar 2005 13:00:26 -0600 NNTP-Posting-Host: 67.161.24.234 X-Trace: sv3-nN16VcRN8AHQiTTrMcvVIobYnflQ7tincgD2KZazEYGbmVnxm/zj5XXOPi0V0Qy1dwnqDJh/5f/Cqgw!5oH3teQZnGQX+UfKk0zFZOUK/4lcjaEzwDdrP+4j1SyZnJvx2CK5z+tuxjk+BQ== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.31 Xref: g2news1.google.com comp.lang.ada:9817 Date: 2005-03-23T13:00:26-06: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? > ... > Make your implementation of stream's Write writing into the socket. If the object is to send the size, followed by the data of that size, then he can make two different "new Root_Stream_Type". The Write(Stream, Item) for one simply adds up the sizes of the Item array, while the other Write actually outputs the Item array. Note that if the size of array bounds is to be excluded, then he needs to use 'Write, not 'Output, for the size counting.