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.
如何创建带有短裤数组的 NSData 实例?据我了解 [NSData dataWithBytes] 方法需要输入为无符号字符数组吗?
谢谢
dataWithBytes:需要一个void *. 你可以传入任何你想要的东西;如果跨架构是一个问题,请确保您考虑字节序。
dataWithBytes:
void *