@yuuang/ffi-rs-darwin-x64
Advanced tools
Comparing version 1.0.45 to 1.0.46
{ | ||
"name": "@yuuang/ffi-rs-darwin-x64", | ||
"version": "1.0.45", | ||
"version": "1.0.46", | ||
"os": [ | ||
@@ -5,0 +5,0 @@ "darwin" |
@@ -366,2 +366,19 @@ # ffi-rs | ||
Similary, you can use `restoreExternal` to restore data from `pointer` which wrap by `createExternal` | ||
```js | ||
const external = createExternal({ | ||
paramsType: [DataType.DoubleArray], | ||
paramsValue: [[1.1, 2.2]] | ||
}) | ||
const restoreData = restoreExternal({ | ||
retType: [arrayConstructor({ | ||
type: DataType.DoubleArray, | ||
length: 2 | ||
})], | ||
paramsValue: external | ||
}) | ||
deepStrictEqual(restoreData, [[1.1, 2.2]]) | ||
``` | ||
### Struct | ||
@@ -368,0 +385,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
569424
677