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.
我有一个输入流,我想在某个位置开始读取字节。有什么办法可以做到吗?假设我想读取1024locationn的字节,即文件n中的字节。nth我如何实现这一目标?我查看了文档,似乎没有办法做到这一点。
1024
n
nth
您需要使用以下 api 进行阅读:-
+ (id)inputStreamWithFileAtPath:(NSString *)path - (NSInteger)read:(uint8_t *)buffer maxLength:(NSUInteger)len;