简体   繁体   中英

Passing Pointer to Structure using Java Native Access Library(JNA)

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM