当前位置:网站首页>[mixed programming JNI] Part 12 jnaerator
[mixed programming JNI] Part 12 jnaerator
2022-06-26 22:07:00 【Hua Weiyun】
If a worker wants to do a good job, he must sharpen his tools first , We can write simple functions manually , But it's a little too much for me to write complex structures by myself
, This mode of production is a little low , And it may be wrong , After all, machines are more reliable than people
This section introduces JNA Tools for jnaerator, Free you from cumbersome and complex signatures
jnaerator Origin
Project address :GitHub - java-native-access/jna: Java Native Access
JNA send Java Programs can easily access native shared libraries , No need to write Java Anything other than code - Unwanted JNI Or native code .
Java The call looks like a call in native code . Most calls do not require special handling or configuration ; No template files or generated code are required .
Used by developers Java Interface to describe the functions and structures in the target local library . This makes it very easy to take advantage of native platform features
JNA jar Package download address : jna -5.10.0.jar jna-jpms-5.10.0.jar
This is a JNA Core artifacts for , Contains only binding libraries and core helper classes .
JNA platform
jna -platform-5.10.0.jar jna-platform-jpms-5.10.0.jar
This artifact contains cross platform mapping and mapping of many common platform functions , Including a large number of Win32 Mapping and a set of utility classes that simplify native access . The code has been tested , The utility interface ensures proper handling of native memory management .
Generate interface file
Script
java -jar jna-5.10.0.jar \ -runtime JNA \ -mode Directory \ -o jna_code -package com.pdool -f ./library.h ./SSC.h libtestCppJNA.soCommand documentation :Command Line Options And Environment Variables · nativelibs4java/JNAerator Wiki · GitHub
Too many will not be copied
summary :
This section is basically nothing special , Mainly to talk about this tool
The official website for the specific use of tools , Just watch and try to thank yourself , Nothing
边栏推荐
- Kdd2022 𞓜 unified session recommendation system based on knowledge enhancement prompt learning
- 经典Wide & Deep模型介绍及tensorflow 2代码实现
- leetcode:6103. 从树中删除边的最小分数【dfs + 联通分量 + 子图的值记录】
- 在哪家券商公司开户最方便最安全可靠
- How to enable Hana cloud service on SAP BTP platform
- Is it safe to buy stocks and open accounts through the account QR code of the CICC securities manager? Want to open an account for stock trading
- DAST 黑盒漏洞扫描器 第五篇:漏洞扫描引擎与服务能力
- Talk about my remote work experience | community essay solicitation
- 网络连接断开请刷新重试
- Solution of valuenotifier < list < t > > monitoring problem in fluent
猜你喜欢

YOLOv6:又快又准的目標檢測框架開源啦

The latest 2022 research review of "continuous learning, CL"

【数学建模】基于matlab GUI随机节点的生成树【含Matlab源码 1919期】

VB. Net class library - 4 screen shots, clipping

Parsing complex JSON in fluent
![leetcode:710. Random numbers in the blacklist [mapping thinking]](/img/ec/a3faeae6636bc3d0d9536962fdd9af.png)
leetcode:710. Random numbers in the blacklist [mapping thinking]

Application and Optimization Practice of 100 million level monthly live national karaoke feed service in Tencent cloud mongodb
![leetcode:1567. Length of the longest subarray whose product is a positive number [dp[i] indicates the maximum length ending with I]](/img/a4/c5c31de7a0a3b34a188bfec0b5d184.png)
leetcode:1567. Length of the longest subarray whose product is a positive number [dp[i] indicates the maximum length ending with I]

DAST 黑盒漏洞扫描器 第五篇:漏洞扫描引擎与服务能力

协同过滤进化版本NeuralCF及tensorflow2实现
随机推荐
模块五作业
网络爬虫终篇:向10万级网易云用户发送定向消息
CVPR 2022 - Interpretation of selected papers of meituan technical team
Leetcode (763) -- dividing letter ranges
Common configuration of jupyterlab
Briefly describe the model animation function of unity
FPGA -VGA显示
Talk about my remote work experience | community essay solicitation
Web crawler 2: crawl the user ID and home page address of Netease cloud music reviews
Is it safe for CICC fortune to open an account? I want to open an account to speculate in stocks.
Which securities company is the most convenient, safe and reliable for opening an account
矩阵求导及其链式法则
Product design in the extreme Internet Era
VB. Net class library (Advanced - 2 overload)
How to create an OData service with the graphical modeler on the sap BTP platform
Unity 设置Material、Shader的方法
美术向的Unity动画知识
Convolutional neural network (CNN) explanation and tensorflow2 code implementation
MacOS环境下使用HomeBrew安装[email protected]
VB. Net class library (advanced version - 1)