当前位置:网站首页>[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.so
Command 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
边栏推荐
- Homebrew installation in MacOS environment [email protected]
- VB. Net class library (advanced version - 1)
- 协同过滤进化版本NeuralCF及tensorflow2实现
- leetcode:6107. 不同骰子序列的数目【dp六个状态 + dfs记忆化】
- YuMinHong: New Oriental does not have a reversal of falling and turning over, destroying and rising again
- 主从复制系统设计
- 【混合编程jni 】第九篇之Jni总结
- 数据治理啥都干
- 矩阵求导及其链式法则
- Unity animation knowledge of Art
猜你喜欢
leetcode:6103. Delete the minimum score of the edge from the tree [DFS + connected component + value record of the subgraph]
MATLAB与Mysql数据库连接并数据交换(基于ODBC)
模块五作业
Implementation of collaborative filtering evolution version neuralcf and tensorflow2
vulnhub之dc8
Using C to operate SQLSERVER database through SQL statement tutorial
MATLAB and MySQL database connection and data exchange (based on ODBC)
leetcode:6103. 从树中删除边的最小分数【dfs + 联通分量 + 子图的值记录】
DLA model (classification model + improved segmentation model) + deformable convolution
经典Wide & Deep模型介绍及tensorflow 2代码实现
随机推荐
大龄程序员的一些出路
numpy中mgrid的用法
random_normal_initializer 使用
Is there any risk in registering and opening an account for stock speculation? Is it safe?
Common configuration of jupyterlab
经典Wide & Deep模型介绍及tensorflow 2代码实现
AI智能抠图工具--头发丝都可见
Comprehensive evaluation of online collaboration documents: note, flowus, WOLAI, Feishu, YuQue, Microsoft office, Google Docs, Jinshan docs, Tencent docs, graphite docs, Dropbox paper, nutcloud docs,
Word chess based on heuristic search
DAST black box vulnerability scanner part 5: vulnerability scanning engine and service capability
如何在 SAP BTP 平台上启用 HANA Cloud 服务
【混合编程jni 】第九篇之Jni总结
DLA model (classification model + improved segmentation model) + deformable convolution
JupyterLab 常用配置
主从复制系统设计
Unity3D插件 AnyPortrait 2D骨骼动画制作
如何用 SAP BTP 平台上的图形建模器创建一个 OData 服务
The latest 2022 research review of "continuous learning, CL"
Yolov6: the fast and accurate target detection framework is open source
Is this a bug? Whether the randomly filled letters can be closed