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 
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 
49 
51 - (HFByteRangeAttributeArray *)attributesForBytesInRange:(HFRange)range;
52 
53 @end
A reference to an open file.
Definition: HFFileReference.h:19
unsigned long long length()
BOOL isSourcedFromFile()
HFRange is the 64 bit analog of NSRange, containing a 64 bit location and length. ...
Definition: HFTypes.h:2
A class that represents sets of attributes, attached to ranges of bytes.
Definition: HFByteRangeAttributeArray.h:13
Methods for querying attributes of individual byte slices.
Definition: HFByteSlice.h:46
A class representing a source of data for an HFByteArray.
Definition: HFByteSlice.h:19