tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Kerber <dcker...@verizon.net>
Subject Re: How to get fields list in order
Date Thu, 02 Nov 2006 15:06:53 GMT
Caldarale, Charles R wrote:

>>From: David Kerber [mailto:dckerber@verizon.net] 
>>Subject: Re: How to get fields list in order
>>
>>Then I could just check the field type, and increment the 
>>byte counter by the appropriate amount (i.e. if the java 
>>field type is int, then I know the width in the passed
>>structure is 4 bytes, etc).
>>    
>>
>
>If the structure is intended to mirror the layout of the Java object,
>then your assumptions are flawed.  For example, in a 64-bit JVM,
>integers are 8 bytes wide, of which only 4 are actually used.  Also,
>booleans have no defined size, and JVM implementations are free to
>allocate whatever space deemed appropriate, from 1 bit upwards.
>  
>
I'll keep that in mind; it looks like I'll have to go with my backup method.

Dave



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message