HexFiend: HFByteSlice.h Source File

HexFiend

HFByteSlice.h
Go to the documentation of this file.
1 //
2 // HFByteSlice.h
3 // HexFiend_2
4 //
5 // Copyright 2007 ridiculous_fish. All rights reserved.
6 //
7
8 #import <Cocoa/Cocoa.h>
9
10 @class HFFileReference, HFByteRangeAttributeArray;
11
19 @interface HFByteSlice : NSObject {
20 NSUInteger retainCount;
21 }
22
24 - (unsigned long long)length;
25
27 - (void)copyBytes:(unsigned char *)dst range:(HFRange)range;
28
30 - (HFByteSlice *)subsliceWithRange:(HFRange)range;
31
34 - (HFByteSlice *)byteSliceByAppendingSlice:(HFByteSlice *)slice;
35
38 - (BOOL)isSourcedFromFile;
39
42 - (HFRange)sourceRangeForFile:(HFFileReference *)reference;
43
44 @end
45
48 @interface HFByteSlice (HFAttributes)
49
51 - (HFByteRangeAttributeArray *)attributesForBytesInRange:(HFRange)range;
52
53 @end
HFFileReference
A reference to an open file.
Definition: HFFileReference.h:19
-[HFByteSlice length]
unsigned long long length()
-[HFByteSlice isSourcedFromFile]
BOOL isSourcedFromFile()
HFRange
HFRange is the 64 bit analog of NSRange, containing a 64 bit location and length. ...
Definition: HFTypes.h:2
HFByteRangeAttributeArray
A class that represents sets of attributes, attached to ranges of bytes.
Definition: HFByteRangeAttributeArray.h:13
HFByteSlice(HFAttributes)
Methods for querying attributes of individual byte slices.
Definition: HFByteSlice.h:46
HFByteSlice
A class representing a source of data for an HFByteArray.
Definition: HFByteSlice.h:19