comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Re: Record size
Date: Wed, 23 Mar 2005 13:00:26 -0600
Date: 2005-03-23T13:00:26-06:00	[thread overview]
Message-ID: <ibydnfPp2dhXIdzfRVn-oQ@comcast.com> (raw)
In-Reply-To: 1l1cp6im8ie3j$.1qw9d6lc9d8iq.dlg@40tude.net

> > 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.



  reply	other threads:[~2005-03-23 19:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-23 14:11 Record size Bj?rn
2005-03-23 15:38 ` Dmitry A. Kazakov
2005-03-23 19:00   ` tmoran [this message]
2005-03-24 17:06     ` Bj?rn
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox