-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathImageHeader.h
23 lines (19 loc) · 1.06 KB
/
ImageHeader.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@interface ImageHeader:NSObject
@property(retain) NSMutableData* data;
@property(retain) NSArray<NSString*>* fastShallowPaths;
@property(retain) NSSet<NSString*>* fastRecursivePaths;
-(instancetype)initWithPointer:(char*)pointer;
-(instancetype)initEmpty;
-(struct mach_header_64*)header;
-(void)forEachCommand:(void (^)(struct load_command*))block;
-(struct load_command*)commandWithType:(int)type;
-(void)forEachSegmentCommand:(void (^)(struct segment_command_64*))block;
-(struct segment_command_64*)segmentCommandWithName:(char*)name;
-(struct segment_command_64*)segmentCommandWithAddress:(long)address indexOut:(int*)indexOut;
-(struct segment_command_64*)segmentCommandWithOffset:(long)offset indexOut:(int*)indexOut;
-(void)forEachSectionCommand:(void (^)(struct segment_command_64*,struct section_64*))block;
-(struct section_64*)sectionCommandWithName:(char*)name;
-(void)addCommand:(struct load_command*)command;
-(int)ordinalWithDylibPath:(NSString*)target cache:(CacheSet*)cache symbol:(NSString*)symbol newSymbolOut:(NSString**)newSymbolOut;
-(void)dumpSegments;
@end