Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法可以将字符串转换为UnsafeMutablePointer<UInt8>Swift 语言,避免数据丢失?
UnsafeMutablePointer<UInt8>
let s = "83" var i: UInt8 = UInt8.init(s)! let up: UnsafeMutablePointer<UInt8> = UnsafeMutablePointer<UInt8>.init(&i)