@yuuang/ffi-rs-darwin-x64
Advanced tools
Comparing version 1.0.52 to 1.0.53
{ | ||
"name": "@yuuang/ffi-rs-darwin-x64", | ||
"version": "1.0.52", | ||
"version": "1.0.53", | ||
"os": [ | ||
@@ -5,0 +5,0 @@ "darwin" |
@@ -83,2 +83,3 @@ # ffi-rs | ||
- linux-x64-gnu | ||
- linux-x64-musl | ||
- win32-x64-msvc | ||
@@ -136,3 +137,3 @@ - win32-ia32-msvc | ||
### initialization | ||
### Initialization | ||
@@ -164,2 +165,24 @@ ```js | ||
### Load Main Program handle | ||
You can alse pass emptry path string in `open` function like [ffi-napi](https://github.com/node-ffi-napi/node-ffi-napi?tab=readme-ov-file#example) to get the main program handle refer [dlopen](https://man7.org/linux/man-pages/man3/dlopen.3.html) | ||
```js | ||
open({ | ||
library: "libnative", | ||
path: "", | ||
}); | ||
// In darwin/linux, you can call atoi function which is includeed in the basic c library | ||
equal( | ||
load({ | ||
library: "libnative", | ||
funcName: "atoi", | ||
retType: DataType.I32, | ||
paramsType: [DataType.String], | ||
paramsValue: ["1000"], | ||
}), | ||
1000, | ||
); | ||
``` | ||
### Basic Types | ||
@@ -166,0 +189,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
587925
751
1