8 #import <Foundation/Foundation.h>
10 NS_ASSUME_NONNULL_BEGIN
255 - (NSData *)readDataOfLength:(NSUInteger)length;
257 - (void)writeData:(NSData *)data;
259 - (void)seekToFileOffset:(
unsigned long long)offset;
260 - (void)truncateFileAtOffset:(
unsigned long long)offset;
264 - (instancetype)initWithFileDescriptor:(
int)fd closeOnDealloc:(BOOL)closeopt;
265 - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
267 + (nullable instancetype)fileHandleForReadingAtPath:(NSString *)path;
268 + (nullable instancetype)fileHandleForWritingAtPath:(NSString *)path;
269 + (nullable instancetype)fileHandleForUpdatingAtPath:(NSString *)path;
271 + (nullable instancetype)fileHandleForReadingFromURL:(NSURL *)url error:(NSError **)error;
272 + (nullable instancetype)fileHandleForWritingToURL:(NSURL *)url error:(NSError **)error;
273 + (nullable instancetype)fileHandleForUpdatingURL:(NSURL *)url error:(NSError **)error;
284 - (void)readInBackgroundAndNotifyForModes:(nullable NSArray<NSString *> *)modes;
286 - (void)readToEndOfFileInBackgroundAndNotifyForModes:(nullable NSArray<NSString *> *)modes;
288 - (void)acceptConnectionInBackgroundAndNotifyForModes:(nullable NSArray<NSString *> *)modes;
290 - (void)waitForDataInBackgroundAndNotifyForModes:(nullable NSArray<NSString *> *)modes;
296 NS_ASSUME_NONNULL_END