comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Record size
Date: Wed, 23 Mar 2005 16:38:11 +0100
Date: 2005-03-23T16:38:08+01:00	[thread overview]
Message-ID: <1l1cp6im8ie3j$.1qw9d6lc9d8iq.dlg@40tude.net> (raw)
In-Reply-To: d56673df.0503230611.216c4db4@posting.google.com

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



  reply	other threads:[~2005-03-23 15:38 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 [this message]
2005-03-23 19:00   ` tmoran
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