-
Notifications
You must be signed in to change notification settings - Fork 4
/
CacheFile.h
23 lines (16 loc) · 790 Bytes
/
CacheFile.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// TODO: properly tune this
#define FAST_CHUNK_SIZE 0x10000
@interface CacheFile:NSObject<LocationBase>
@property(retain) NSMutableData* data;
@property(retain) NSArray<CacheImage*>* images;
@property(retain) NSDictionary<NSNumber*,NSArray<NSNumber*>*>* fastRebasesByChunk;
@property(retain) NSDictionary<NSNumber*,NSArray<CacheImage*>*>* fastImagesByChunk;
@property(retain) NSDictionary<NSString*,CacheImage*>* fastImagesByPath;
-(instancetype)initWithPath:(NSString*)path;
-(long)maxConstDataMappingAddress;
-(long)maxConstDataSegmentAddress;
-(CacheImage*)imageWithPath:(NSString*)path;
-(NSArray<CacheImage*>*)imagesWithPathPrefix:(NSString*)path;
-(CacheImage*)imageWithAddress:(long)address;
-(NSArray<NSNumber*>*)rebasesWithStartAddress:(long)start endAddress:(long)end;
@end