-1

有没有办法可以将字符串转换为UnsafeMutablePointer<UInt8>Swift 语言,避免数据丢失?

4

1 回答 1

0
let s = "83"
var i: UInt8 = UInt8.init(s)!
let up: UnsafeMutablePointer<UInt8> = UnsafeMutablePointer<UInt8>.init(&i)
于 2017-04-21T04:49:35.040 回答