I am attempting to convert my Swift 2 code into the latest syntax(Swift 3). I am receiving the following error:
Cannot invoke initializer for type 'UnsafeMutablePointer<CUnsignedChar>' with an argument list of type '(UnsafeMutableRawPointer!)
Swift 2 Code:
let rawData = UnsafeMutablePointer<CUnsignedChar>(calloc(height * width * 4, Int(sizeof(CUnsignedChar))))
Can someone please help me resolve this conversion syntax issue?