How can I convert an integer Array to Data?
This is what I have, but I am getting lost in figuring out the final step. I am only interested in the Swift 3 solution.
import Foundation
var buffer = [UInt64]( repeating: 0, count: 1000 )
for x in 0 ..< 1000
{
buffer[x] = UInt64(x)
}
///////
// What goes here to place buffer into myData
var myData = Data()
//
///////