round trip Swift number types to/from Data
Note: The code has been updated for Swift 5 (Xcode 10.2) now. (Swift 3 and Swift 4.2 versions can be found in the edit history.) Also possibly unaligned data is now correctly handled. How to create Data from a value As of Swift 4.2, data can be created from a value simply with let value … Read more