Class: Pliney::MachO::CommonSectionReader
- Defined in:
- lib/pliney/macho.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#_reserved1 ⇒ Object
readonly
Returns the value of attribute _reserved1.
-
#_reserved2 ⇒ Object
readonly
Returns the value of attribute _reserved2.
-
#addr ⇒ Object
readonly
Returns the value of attribute addr.
-
#align ⇒ Object
readonly
Returns the value of attribute align.
-
#flags ⇒ Object
readonly
Returns the value of attribute flags.
-
#nreloc ⇒ Object
readonly
Returns the value of attribute nreloc.
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
-
#reloff ⇒ Object
readonly
Returns the value of attribute reloff.
-
#sectname ⇒ Object
readonly
Returns the value of attribute sectname.
-
#segname ⇒ Object
readonly
Returns the value of attribute segname.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
Attributes inherited from Reader
Instance Method Summary collapse
Methods inherited from Reader
Constructor Details
This class inherits a constructor from Pliney::MachO::Reader
Instance Attribute Details
#_reserved1 ⇒ Object (readonly)
Returns the value of attribute _reserved1.
374 375 376 |
# File 'lib/pliney/macho.rb', line 374 def _reserved1 @_reserved1 end |
#_reserved2 ⇒ Object (readonly)
Returns the value of attribute _reserved2.
374 375 376 |
# File 'lib/pliney/macho.rb', line 374 def _reserved2 @_reserved2 end |
#addr ⇒ Object (readonly)
Returns the value of attribute addr.
374 375 376 |
# File 'lib/pliney/macho.rb', line 374 def addr @addr end |
#align ⇒ Object (readonly)
Returns the value of attribute align.
374 375 376 |
# File 'lib/pliney/macho.rb', line 374 def align @align end |
#flags ⇒ Object (readonly)
Returns the value of attribute flags.
374 375 376 |
# File 'lib/pliney/macho.rb', line 374 def flags @flags end |
#nreloc ⇒ Object (readonly)
Returns the value of attribute nreloc.
374 375 376 |
# File 'lib/pliney/macho.rb', line 374 def nreloc @nreloc end |
#offset ⇒ Object (readonly)
Returns the value of attribute offset.
374 375 376 |
# File 'lib/pliney/macho.rb', line 374 def offset @offset end |
#reloff ⇒ Object (readonly)
Returns the value of attribute reloff.
374 375 376 |
# File 'lib/pliney/macho.rb', line 374 def reloff @reloff end |
#sectname ⇒ Object (readonly)
Returns the value of attribute sectname.
374 375 376 |
# File 'lib/pliney/macho.rb', line 374 def sectname @sectname end |
#segname ⇒ Object (readonly)
Returns the value of attribute segname.
374 375 376 |
# File 'lib/pliney/macho.rb', line 374 def segname @segname end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
374 375 376 |
# File 'lib/pliney/macho.rb', line 374 def size @size end |
Instance Method Details
#parse ⇒ Object
375 376 377 378 379 |
# File 'lib/pliney/macho.rb', line 375 def parse() super() @sectname = @fh.strictread(16) @segname = @fh.strictread(16) end |
#section_name ⇒ Object
385 386 387 |
# File 'lib/pliney/macho.rb', line 385 def section_name() @sectname.unpack("Z16").first end |
#segment_name ⇒ Object
381 382 383 |
# File 'lib/pliney/macho.rb', line 381 def segment_name() @segname.unpack("Z16").first end |