> From: David Kerber [mailto:[EMAIL PROTECTED] > 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. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]