I have seen examples of reading Ints from Data that use "withUnsafeBytes", but none with copyBytes.
I am trying to read an Int (and later different size Ints) from a Data.
Is there any example for Swift 5.5 , without going through a String ?
I have seen examples of reading Ints from Data that use "withUnsafeBytes", but none with copyBytes.
I am trying to read an Int (and later different size Ints) from a Data.
Is there any example for Swift 5.5 , without going through a String ?
Depends on how you stored Int into Data. Can you explain?