OLD | NEW |
(Empty) | |
| 1 // -*- mode: ObjC -*- |
| 2 |
| 3 // This file is part of class-dump, a utility for examining the Objective-C seg
ment of Mach-O files. |
| 4 // Copyright (C) 1997-1998, 2000-2001, 2004-2010 Steve Nygard. |
| 5 |
| 6 #import <Foundation/Foundation.h> |
| 7 #include <mach-o/loader.h> |
| 8 |
| 9 @class CDDataCursor, CDMachOFile, CDLCSegment32; |
| 10 |
| 11 @interface CDSection : NSObject |
| 12 { |
| 13 NSString *segmentName; |
| 14 NSString *sectionName; |
| 15 |
| 16 NSData *data; |
| 17 struct { |
| 18 unsigned int hasLoadedData:1; |
| 19 } _flags; |
| 20 } |
| 21 |
| 22 - (id)init; |
| 23 - (void)dealloc; |
| 24 |
| 25 - (NSString *)segmentName; |
| 26 - (void)setSegmentName:(NSString *)newName; |
| 27 |
| 28 - (NSString *)sectionName; |
| 29 - (void)setSectionName:(NSString *)newName; |
| 30 |
| 31 - (NSData *)data; |
| 32 - (void)loadData; |
| 33 - (void)unloadData; |
| 34 |
| 35 - (NSUInteger)addr; |
| 36 - (NSUInteger)size; |
| 37 |
| 38 - (CDMachOFile *)machOFile; |
| 39 |
| 40 - (NSString *)description; |
| 41 |
| 42 - (BOOL)containsAddress:(NSUInteger)address; |
| 43 - (NSUInteger)fileOffsetForAddress:(NSUInteger)address; |
| 44 |
| 45 @end |
OLD | NEW |