@yuuang/ffi-rs-darwin-x64
Advanced tools
Comparing version 1.0.46 to 1.0.47
{ | ||
"name": "@yuuang/ffi-rs-darwin-x64", | ||
"version": "1.0.46", | ||
"version": "1.0.47", | ||
"os": [ | ||
@@ -5,0 +5,0 @@ "darwin" |
@@ -344,6 +344,6 @@ # ffi-rs | ||
For the code above, we can use `createExternal` function to wrap a pointer data and send it as paramsValue | ||
For the code above, we can use `createPointer` function to wrap a pointer data and send it as paramsValue | ||
```js | ||
const funcExternal: unknown[] = createExternal({ | ||
const funcExternal: unknown[] = createPointer({ | ||
paramsType: [DataType.DoubleArray], | ||
@@ -367,10 +367,10 @@ paramsValue: [[1.1,2.2]] | ||
Similary, you can use `restoreExternal` to restore data from `pointer` which wrap by `createExternal` | ||
Similary, you can use `storePointer` to restore data from `pointer` which wrap by `createPointer` | ||
```js | ||
const external = createExternal({ | ||
const external = createPointer({ | ||
paramsType: [DataType.DoubleArray], | ||
paramsValue: [[1.1, 2.2]] | ||
}) | ||
const restoreData = restoreExternal({ | ||
const restoreData = storePointer({ | ||
retType: [arrayConstructor({ | ||
@@ -377,0 +377,0 @@ type: DataType.DoubleArray, |
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
569414