Class: OdinFlex::MachO::Header
- Inherits:
-
Struct
- Object
- Struct
- OdinFlex::MachO::Header
- Includes:
- SectionTypes
- Defined in:
- lib/odinflex/mach-o.rb
Constant Summary collapse
- MH_OBJECT =
0x1
- MH_EXECUTE =
0x2
- MH_FVMLIB =
0x3
- MH_CORE =
0x4
- MH_PRELOAD =
0x5
- MH_DYLIB =
0x6
- MH_DYLINKER =
0x7
- MH_BUNDLE =
0x8
- MH_DYLIB_STUB =
0x9
- MH_DSYM =
0xa
- MH_KEXT_BUNDLE =
0xb
- MH_FILESET =
0xc
- SIZEOF =
8 * (32 bit int)
8 * 4
Instance Attribute Summary collapse
-
#cpusubtype ⇒ Object
Returns the value of attribute cpusubtype.
-
#cputype ⇒ Object
Returns the value of attribute cputype.
-
#filetype ⇒ Object
Returns the value of attribute filetype.
-
#flags ⇒ Object
Returns the value of attribute flags.
-
#magic ⇒ Object
Returns the value of attribute magic.
-
#ncmds ⇒ Object
Returns the value of attribute ncmds.
-
#reserved ⇒ Object
Returns the value of attribute reserved.
-
#sizeofcmds ⇒ Object
Returns the value of attribute sizeofcmds.
Instance Method Summary collapse
Methods included from SectionTypes
#command?, #dysymtab?, #section?, #segment?, #symtab?
Instance Attribute Details
#cpusubtype ⇒ Object
Returns the value of attribute cpusubtype
28 29 30 |
# File 'lib/odinflex/mach-o.rb', line 28 def cpusubtype @cpusubtype end |
#cputype ⇒ Object
Returns the value of attribute cputype
28 29 30 |
# File 'lib/odinflex/mach-o.rb', line 28 def cputype @cputype end |
#filetype ⇒ Object
Returns the value of attribute filetype
28 29 30 |
# File 'lib/odinflex/mach-o.rb', line 28 def filetype @filetype end |
#flags ⇒ Object
Returns the value of attribute flags
28 29 30 |
# File 'lib/odinflex/mach-o.rb', line 28 def flags @flags end |
#magic ⇒ Object
Returns the value of attribute magic
28 29 30 |
# File 'lib/odinflex/mach-o.rb', line 28 def magic @magic end |
#ncmds ⇒ Object
Returns the value of attribute ncmds
28 29 30 |
# File 'lib/odinflex/mach-o.rb', line 28 def ncmds @ncmds end |
#reserved ⇒ Object
Returns the value of attribute reserved
28 29 30 |
# File 'lib/odinflex/mach-o.rb', line 28 def reserved @reserved end |
#sizeofcmds ⇒ Object
Returns the value of attribute sizeofcmds
28 29 30 |
# File 'lib/odinflex/mach-o.rb', line 28 def sizeofcmds @sizeofcmds end |
Instance Method Details
#dsym_file? ⇒ Boolean
62 63 64 |
# File 'lib/odinflex/mach-o.rb', line 62 def dsym_file? filetype == MH_DSYM end |
#executable_file? ⇒ Boolean
58 59 60 |
# File 'lib/odinflex/mach-o.rb', line 58 def executable_file? filetype == MH_EXECUTE end |
#object_file? ⇒ Boolean
54 55 56 |
# File 'lib/odinflex/mach-o.rb', line 54 def object_file? filetype == MH_OBJECT end |