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 "CDLCTwoLevelHints.h" |
| 7 |
| 8 #import "CDFatFile.h" |
| 9 #import "CDMachOFile.h" |
| 10 |
| 11 @implementation CDLCTwoLevelHints |
| 12 |
| 13 - (id)initWithDataCursor:(CDDataCursor *)cursor machOFile:(CDMachOFile *)aMachOF
ile; |
| 14 { |
| 15 if ([super initWithDataCursor:cursor machOFile:aMachOFile] == nil) |
| 16 return nil; |
| 17 |
| 18 hintsCommand.cmd = [cursor readInt32]; |
| 19 hintsCommand.cmdsize = [cursor readInt32]; |
| 20 hintsCommand.offset = [cursor readInt32]; |
| 21 hintsCommand.nhints = [cursor readInt32]; |
| 22 |
| 23 return self; |
| 24 } |
| 25 |
| 26 - (uint32_t)cmd; |
| 27 { |
| 28 return hintsCommand.cmd; |
| 29 } |
| 30 |
| 31 - (uint32_t)cmdsize; |
| 32 { |
| 33 return hintsCommand.cmdsize; |
| 34 } |
| 35 |
| 36 @end |
OLD | NEW |