Linux(麒麟)系统对接第三方动态库(so)文件接口
1、安装依赖库
"ffi-napi": "^4.0.3", "ref-array-napi": "^1.2.2", "ref-napi": "^3.0.3", "ref-struct-napi": "^1.1.1",
npm install ffi-napi npm install ref-array-napi npm install ref-napi npm install ref-struct-napi
2、类型对应
3、对接动态库
参考:https://juejin.cn/post/6844903645905977357#heading-8
https://github.com/node-ffi/node-ffi/wiki/Node-FFI-Tutorial#structs