Christopher Schultz wrote:
David,
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).
As Chuck points out, this is unlikely to work. If the JIT for the
platform decides to word-align your fields, and a word isn't 4-bytes
long, you will get the wrong data. There's probably no good way to do
this without a lot of trial and error followed by luck and an
environment that never changes.
That's the job of the package I bought that encapsulates all this stuff,
so I don't have to understand it, just use it according to their
documentation <Grin>.
Dave
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]