开发者

NSFileHandle for binary files?

How can we read executable files开发者_StackOverflow社区 in memory and then manipulate them , does NSFileHandle can works with executable files and how so ?! Thank you.


Sure, NSFileHandle can manipulate anything you can read and write with a file descriptor. It just gives you raw access to the data in the file though, so to work with executables you would need to implement things like a Mach-O parser if you want to actually do anything that requires you to do anything that requires semantic understanding of the file,

On the other hand, if you just want to do something like checksum the file you don't need much more infrastructure than NSFileHandle.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜