comp.lang.ada
 help / color / mirror / Atom feed
From: "Beard, Frank" <beardf@spawar.navy.mil>
To: "'comp.lang.ada@ada.eu.org'" <comp.lang.ada@ada.eu.org>
Subject: RE: How to convert record?
Date: Wed, 31 Oct 2001 14:40:22 -0500
Date: 2001-10-31T14:40:22-05:00	[thread overview]
Message-ID: <mailman.1004557367.26087.comp.lang.ada@ada.eu.org> (raw)


-----Original Message-----
From: byhoe@greenlime.com [mailto:byhoe@greenlime.com]

> You are wrong. Try compile the following example and you will get 14
> and 16 for each.

I'm not wrong.  Your posts on this thread said nothing about requiring
it to be 11 bytes.  You were asking how to convert it to a POSIX IO_Buffer.

What I was saying is, if ALL YOU WANT TO DO is send and receive it across
homogeneous platforms then you don't need to worry about the size.  Let
the system, via 'size of the object, do it for you.  The compiler will 
do what is more efficient for it's processing.  There's no reason to
work against it unless you have to.

If you are sending it to a device that requires it to be 11 bytes, then
that's a different issue.  And of course a rep spec and pragma pack are
going to make a difference in the size, but that wasn't the issue either.

Your thread on "Size and pack" only led me to believe you expected 11
bytes, but got 14.  NOT that it HAD to be 11.  Expecting one thing and
getting something else does not imply a requirement.

So, which is it?  Does it have to be 11, or are you just sending it to
an equivalent peer system.




             reply	other threads:[~2001-10-31 19:40 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-31 19:40 Beard, Frank [this message]
2001-11-01  2:13 ` How to convert record? Adrian Hoe
  -- strict thread matches above, loose matches on Subject: below --
2001-10-30 19:05 Beard, Frank
2001-10-31  4:10 ` Adrian Hoe
2001-10-29 18:16 Beard, Frank
2001-10-30  1:17 ` Adrian Hoe
2001-10-21  9:56 Joseph Kwan
2001-10-22 11:30 ` John McCabe
2001-10-25 11:40   ` Joseph Kwan
2001-10-25 12:38     ` sk
2001-10-25 17:12       ` Jeffrey L. Susanj
2001-10-25 12:48     ` David C. Hoos
2001-10-29  1:42       ` Joseph Kwan
2001-10-29 13:35         ` Marc A. Criley
2001-10-25 12:48     ` Marc A. Criley
2001-10-25 12:54       ` sk
2001-10-25 15:41         ` Ted Dennison
2001-10-26  3:21           ` Smark
2001-10-26  5:45             ` James Rogers
2001-10-26 17:46               ` Smark
2001-10-26 14:30             ` Ted Dennison
2001-10-26 17:42               ` Smark
2001-10-26 20:02                 ` Ted Dennison
2001-10-26 23:10             ` Jeffrey Carter
replies disabled

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