我从UnsafeMutablePointer<UInt>类型的函数Swift结果中得到的
我能把它投给UInt吗
发布于 2016-01-23 23:37:51
只需使用memory属性访问基础数据。
let ptr: UnsafeMutablePointer<UInt> = funcReturningMutablePtr()
let theValue: UInt = ptr.memory类型注释是为了清晰起见,但不是必要的。
https://stackoverflow.com/questions/34970236
复制相似问题