@yuuang/ffi-rs-darwin-x64
Advanced tools
Comparing version 1.0.62 to 1.0.63
{ | ||
"name": "@yuuang/ffi-rs-darwin-x64", | ||
"version": "1.0.62", | ||
"version": "1.0.63", | ||
"os": [ | ||
@@ -5,0 +5,0 @@ "darwin" |
@@ -74,2 +74,3 @@ # ffi-rs | ||
- [doubleArray](#array) | ||
- [floatArray](#array) | ||
- [object](#struct)(Nested object is also supported at the latest version) | ||
@@ -407,7 +408,7 @@ - [function](#function) | ||
```js | ||
const funcExternal: unknown[] = createPointer({ | ||
const ptrArr: unknown[] = createPointer({ | ||
paramsType: [DataType.DoubleArray], | ||
paramsValue: [[1.1,2.2]] | ||
}) | ||
const ptr = funcExternal[0] | ||
load({ | ||
@@ -421,3 +422,3 @@ library: "libsum", | ||
paramsType: [DataType.External, DataType.I32], | ||
paramsValue: [ptr, bigDoubleArr.length], | ||
paramsValue: [unwrapPointer(ptrArr)[0], bigDoubleArr.length], | ||
}) | ||
@@ -424,0 +425,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
620127
683