Is it possible to pass pointer to structure using JNA? Suppose I have a method now i want to call this method using java.
void calculate_Hx(struct a *);
In a word: yes. JNA lets you manipulate struct
and union
objects from Java, including passing them as arguments to functions. Here's a relevant bit of the documentation.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.