阅读背景:

生成具有特定长度的随机字节的NSData对象的最佳方法?

来源:互联网 

If I create a new NSData object of a specific size using dataWithBytes:length:, what is the most efficient way to create the input bytes (20 Mb worth) of random characters, preferably without reading the data in from a file? I need a unique buffer of a specific size each time.If I create a new NSData object of a specific s




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

分享到: