Class: OdinFlex::MachO::LC_SYMTAB::NList
- Inherits:
-
Struct
- Object
- Struct
- OdinFlex::MachO::LC_SYMTAB::NList
- Defined in:
- lib/odinflex/mach-o.rb
Overview
strsize
Constant Summary collapse
- N_GSYM =
From stab.h
0x20- N_FNAME =
global symbol
0x22- N_FUN =
function name
0x24- N_STSYM =
function
0x26- N_LCSYM =
0x28- N_BNSYM =
0x2e- N_AST =
0x32- N_OPT =
0x3c- N_RSYM =
0x40- N_SLINE =
0x44- N_ENSYM =
0x4e- N_SSYM =
0x60- N_SO =
0x64- N_OSO =
0x66- N_STAB =
From nlist.h
0xe0- N_PEXT =
0x10- N_TYPE =
0x0e- N_EXT =
0x01
Instance Attribute Summary collapse
-
#desc ⇒ Object
Returns the value of attribute desc.
-
#index ⇒ Object
Returns the value of attribute index.
-
#name ⇒ Object
Returns the value of attribute name.
-
#sect ⇒ Object
Returns the value of attribute sect.
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#desc ⇒ Object
Returns the value of attribute desc
239 240 241 |
# File 'lib/odinflex/mach-o.rb', line 239 def desc @desc end |
#index ⇒ Object
Returns the value of attribute index
239 240 241 |
# File 'lib/odinflex/mach-o.rb', line 239 def index @index end |
#name ⇒ Object
Returns the value of attribute name
239 240 241 |
# File 'lib/odinflex/mach-o.rb', line 239 def name @name end |
#sect ⇒ Object
Returns the value of attribute sect
239 240 241 |
# File 'lib/odinflex/mach-o.rb', line 239 def sect @sect end |
#type ⇒ Object
Returns the value of attribute type
239 240 241 |
# File 'lib/odinflex/mach-o.rb', line 239 def type @type end |
#value ⇒ Object
Returns the value of attribute value
239 240 241 |
# File 'lib/odinflex/mach-o.rb', line 239 def value @value end |
Instance Method Details
#archive ⇒ Object
281 282 283 |
# File 'lib/odinflex/mach-o.rb', line 281 def archive name[/^.*(?=[(][^)]*[)]$)/] end |
#archive? ⇒ Boolean
277 278 279 |
# File 'lib/odinflex/mach-o.rb', line 277 def archive? oso? && name =~ /[(][^)]*[)]$/ end |
#inspect ⇒ Object
289 290 291 292 293 294 |
# File 'lib/odinflex/mach-o.rb', line 289 def inspect start = "#<struct #{self.class} " members.inject(start) { |buffer, member| buffer + " #{member.to_s}=#{self[member].inspect}" } + ">" end |
#object ⇒ Object
285 286 287 |
# File 'lib/odinflex/mach-o.rb', line 285 def object name[/(?<=[(])[^)]*(?=[)]$)/] end |
#stab? ⇒ Boolean
275 |
# File 'lib/odinflex/mach-o.rb', line 275 def stab?; (type & N_STAB) != 0; end |