2 messages in net.java.dev.jna.usersyet another JNA mapping question
FromSent OnAttachments
Glick, Gene (GE Indust, Security)Nov 29, 2007 6:50 am 
Timothy WallNov 29, 2007 7:55 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:yet another JNA mapping questionActions...
From:Glick, Gene (GE Indust, Security) (gene@ge.com)
Date:Nov 29, 2007 6:50:24 am
List:net.java.dev.jna.users

when mapping a C structure to JNA, and the structure element is an int *, or
even an int **, which is the correct usage for JNA: 1. Pointer or 2. xByReference

If I read the API correctly, the byReference is only used for passed parameters
in a function call. So, I think the correct answer to my question is to use
Pointer type - even if it is a pointer to pointer.

Is that correct?

gene