我的代码snipet如下…: let defaultRouteReachability = withUnsafePointer(to: &zeroAddress) { SCNetworkReachabilityCreateWithAddress(nil, UnsafePointer($0)) } …不再编译以下错误,我不明白: "'init' is unavailable: use 'withMemoryRebound(to:capacity:_)' to temporarily view memory as another layout-compatible type." 该怎么做来解决它?
在调用下面的代码时,试图快速地将“self”传递给C函数: var callbackStruct : AURenderCallbackStruct = AURenderCallbackStruct.init( inputProc: recordingCallback, inputProcRefCon: UnsafeMutablePointer<Void> ) 在这里将“self”转换为UnsafeMutablePointertypes的理想方式是什么?