You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -538,7 +538,7 @@ To create a C struct or get a C struct as a return type, you need to define the
538
538
539
539
`ffi-rs` provides a C struct named `Person` with many types of fields in [sum.cpp](./cpp/sum.cpp#L48)
540
540
541
-
The example call method about how to call a foreign function to create a `Person` struct or use `Person` struct as a return value is [here](./test.ts#L289)
541
+
The example call method about how to call a foreign function to create a `Person` struct or use `Person` struct as a return value is [here](./tests/struct.ts#L27)
542
542
543
543
#### Use array in struct
544
544
@@ -769,7 +769,7 @@ If you set freeResultMemory to false, `ffi-rs` will not release the return resul
769
769
770
770
* Use `DataType.External` as paramsType or retType
771
771
772
-
If developers use `DataType.External` as paramsType or retType, please use `freePointer` to release the memory of the pointer when this memory is no longer in use. ref [test.ts](./test.ts#L170)
772
+
If developers use `DataType.External` as paramsType or retType, please use `freePointer` to release the memory of the pointer when this memory is no longer in use. ref [tests/index.ts](./tests/index.ts#L212)
0 commit comments