8 #import <Foundation/Foundation.h>
10 NS_ASSUME_NONNULL_BEGIN
216 - (NSData *)readDataOfLength:(NSUInteger)length;
218 - (void)writeData:(NSData *)data;
220 - (void)seekToFileOffset:(
unsigned long long)offset;
221 - (void)truncateFileAtOffset:(
unsigned long long)offset;
225 - (instancetype)initWithFileDescriptor:(
int)fd closeOnDealloc:(BOOL)closeopt;
226 - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
228 + (nullable instancetype)fileHandleForReadingAtPath:(NSString *)path;
229 + (nullable instancetype)fileHandleForWritingAtPath:(NSString *)path;
230 + (nullable instancetype)fileHandleForUpdatingAtPath:(NSString *)path;
232 + (nullable instancetype)fileHandleForReadingFromURL:(NSURL *)url error:(NSError **)error;
233 + (nullable instancetype)fileHandleForWritingToURL:(NSURL *)url error:(NSError **)error;
234 + (nullable instancetype)fileHandleForUpdatingURL:(NSURL *)url error:(NSError **)error;
245 - (void)readInBackgroundAndNotifyForModes:(nullable NSArray<NSString *> *)modes;
247 - (void)readToEndOfFileInBackgroundAndNotifyForModes:(nullable NSArray<NSString *> *)modes;
249 - (void)acceptConnectionInBackgroundAndNotifyForModes:(nullable NSArray<NSString *> *)modes;
251 - (void)waitForDataInBackgroundAndNotifyForModes:(nullable NSArray<NSString *> *)modes;
257 NS_ASSUME_NONNULL_END