阅读背景:

在Swift 3中,如何从数据中获得UnsafeRawPointer ?

来源:互联网 

According to the documentation of Data in Swift 3, there is an initializer that I can use to create a Data from UnsafeRawPointer. What I need actually is the opposite. I have a Data, and I want to create a UnsafeRawPointer that points to the bytes of the Data. Here's what I'm doing right now:According to the documentation of Data in Swift




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: