Hi, I am new to Swift language.
In my C++ application, I able to convert 'void *' to 'int * 'as below. Here, 'request' type is 'void *' type.
I am trying to do same thing in Swift also. Here 'request' type is 'UnsafeMutableRawPointer' But I am facing with error
Any one please help to convert from UnsafeMutableRawPointer type to UnsafeMutablePointer<Int32>.
In my C++ application, I able to convert 'void *' to 'int * 'as below. Here, 'request' type is 'void *' type.
Code Block int *ret = request;
I am trying to do same thing in Swift also. Here 'request' type is 'UnsafeMutableRawPointer' But I am facing with error
"Cannot convert value of type 'UnsafeMutableRawPointer' to specified type 'UnsafeMutablePointer<Int32>'"
Code Block let ret: UnsafeMutablePointer<Int32> = request
Any one please help to convert from UnsafeMutableRawPointer type to UnsafeMutablePointer<Int32>.