Commit e3c6814
relax bind! Vector{UInt8} -> AbstractVector{UInt8} (#340)
* relax bind! Vector{UInt8} -> AbstractVector{UInt8}
This allows zero-copy writes e.g. for ReinterpretArrays.
* special case for ReinterpretArray
* fix size calculation, add tests
* pass pointer of ReinterpA. to ccall
* replace pointer by Ref
---------
Co-authored-by: Max Freudenberg <max.freudenberg@protonmail.com>1 parent 95131f8 commit e3c6814
2 files changed
+28
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
359 | 369 | | |
360 | 370 | | |
361 | 371 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
906 | 906 | | |
907 | 907 | | |
908 | 908 | | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
909 | 927 | | |
910 | 928 | | |
911 | 929 | | |
| |||
0 commit comments