From: Jeffrey Carter <spam@spam.com>
Subject: Re: Variant Record Sizes..
Date: Thu, 19 Aug 2004 19:30:00 GMT
Date: 2004-08-19T19:30:00+00:00 [thread overview]
Message-ID: <Yc7Vc.7050$3O3.2893@newsread2.news.pas.earthlink.net> (raw)
In-Reply-To: <e8f9995c.0408191048.5d250173@posting.google.com>
Ganesh Ramasivan wrote:
> So in case of the example below, is the size of the Test_Record 2
> bytes, even though the "use 8" clause has been specified as the other
> element of the record specifies "use 16".
Since your object is statically constrained, it's probably 2 bytes: 1
for the discriminant, and 1 for the field. If you use the other value
for the discriminant, it will probably be 4 bytes: 1 for the
discriminant, 2 for the field, and 1 for alignment.
--
Jeff Carter
"Sons of a silly person."
Monty Python & the Holy Grail
02
prev parent reply other threads:[~2004-08-19 19:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-19 18:48 Variant Record Sizes Ganesh Ramasivan
2004-08-19 19:29 ` Martin Dowie
2004-08-20 14:09 ` Ganesh Ramasivan
2004-08-19 19:30 ` Jeffrey Carter [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox