Commit 4c9464b
authored
Convert bytes directly to Data instead of UnsafePointer API (#83)
* Convert bytes directly to Data instead of UnsafePointer API
Using a pointer to an array created via the UnsafePointer initializer is
undefined and isn't guaranteed to be valid.
* Use non-deprecated initializer for Data1 parent 440f78d commit 4c9464b
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
| 289 | + | |
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| |||
0 commit comments