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 "CDLCRoutines64.h" |
| 7 |
| 8 #import "CDDataCursor.h" |
| 9 |
| 10 @implementation CDLCRoutines64 |
| 11 |
| 12 - (id)initWithDataCursor:(CDDataCursor *)cursor machOFile:(CDMachOFile *)aMachOF
ile; |
| 13 { |
| 14 if ([super initWithDataCursor:cursor machOFile:aMachOFile] == nil) |
| 15 return nil; |
| 16 |
| 17 routinesCommand.cmd = [cursor readInt32]; |
| 18 routinesCommand.cmdsize = [cursor readInt32]; |
| 19 |
| 20 routinesCommand.init_address = [cursor readInt64]; |
| 21 routinesCommand.init_module = [cursor readInt64]; |
| 22 routinesCommand.reserved1 = [cursor readInt64]; |
| 23 routinesCommand.reserved2 = [cursor readInt64]; |
| 24 routinesCommand.reserved3 = [cursor readInt64]; |
| 25 routinesCommand.reserved4 = [cursor readInt64]; |
| 26 routinesCommand.reserved5 = [cursor readInt64]; |
| 27 routinesCommand.reserved6 = [cursor readInt64]; |
| 28 |
| 29 return self; |
| 30 } |
| 31 |
| 32 - (uint32_t)cmd; |
| 33 { |
| 34 return routinesCommand.cmd; |
| 35 } |
| 36 |
| 37 - (uint32_t)cmdsize; |
| 38 { |
| 39 return routinesCommand.cmdsize; |
| 40 } |
| 41 |
| 42 @end |
OLD | NEW |