C语言函数:void function1(int a, int b, const unsigned char* data);
char * function2(float * pVal, char * outString);
void function3(Rect * pRect, Rect rect); JNA模拟:public interface MyLibTest extends Library { //定义结构体 public static class Rect extends Structure { //公共字段的顺序,必须与C语言中的结构的顺序一致,否则会报错! public int left; public int top; public int right; public int bottom; //结构体传指针 public static class ByReference extends Rect implements Structure.ByReference { } //结构体传值 public static class ByValue extends Rect implements Structure.ByValue{ }