00001
00002
00003
00004
00005
00006
00007
00008
00009 #import <Cocoa/Cocoa.h>
00010
00018 @interface HFFileReference : NSObject {
00019 int fileDescriptor;
00020 dev_t device;
00021 unsigned long long fileLength;
00022 unsigned long long inode;
00023 BOOL isWritable;
00024 }
00025
00026
00028 - initWritableWithPath:(NSString *)path error:(NSError **)error;
00029
00031 - initWithPath:(NSString *)path error:(NSError **)error;
00032
00034 - (void)close;
00035
00041 - (void)readBytes:(unsigned char *)buff length:(NSUInteger)length from:(unsigned long long)offset;
00042
00049 - (int)writeBytes:(const unsigned char *)buff length:(NSUInteger)length to:(unsigned long long)offset;
00050
00052 - (unsigned long long)length;
00053
00055 - (BOOL)setLength:(unsigned long long)length error:(NSError **)error;
00056
00058 - (BOOL)isEqual:(id)val;
00059
00060 @end