00001
00002
00003
00004
00005
00006
00007
00008 #import <Cocoa/Cocoa.h>
00009
00010 @class HFFileReference, HFByteRangeAttributeArray;
00011
00019 @interface HFByteSlice : NSObject {
00020 NSUInteger retainCount;
00021 }
00022
00024 - (unsigned long long)length;
00025
00027 - (void)copyBytes:(unsigned char *)dst range:(HFRange)range;
00028
00030 - (HFByteSlice *)subsliceWithRange:(HFRange)range;
00031
00034 - (id)byteSliceByAppendingSlice:(HFByteSlice *)slice;
00035
00038 - (BOOL)isSourcedFromFile;
00039
00042 - (HFRange)sourceRangeForFile:(HFFileReference *)reference;
00043
00044 @end
00045
00048 @interface HFByteSlice (HFAttributes)
00049
00051 - (HFByteRangeAttributeArray *)attributesForBytesInRange:(HFRange)range;
00052
00053 @end