Class: Pliney::MachO::CommonSegmentReader
- Inherits:
-
CommonLCReader
- Object
- Reader
- CommonLCReader
- Pliney::MachO::CommonSegmentReader
- Defined in:
- lib/pliney/macho.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#fileoff ⇒ Object
readonly
Returns the value of attribute fileoff.
-
#filesize ⇒ Object
readonly
Returns the value of attribute filesize.
-
#flags ⇒ Object
readonly
Returns the value of attribute flags.
-
#initprot ⇒ Object
readonly
Returns the value of attribute initprot.
-
#maxprot ⇒ Object
readonly
Returns the value of attribute maxprot.
-
#nsects ⇒ Object
readonly
Returns the value of attribute nsects.
-
#sections ⇒ Object
readonly
Returns the value of attribute sections.
-
#segname ⇒ Object
readonly
Returns the value of attribute segname.
-
#vmaddr ⇒ Object
readonly
Returns the value of attribute vmaddr.
-
#vmsize ⇒ Object
readonly
Returns the value of attribute vmsize.
Attributes inherited from CommonLCReader
Attributes inherited from Reader
Instance Method Summary collapse
Methods inherited from CommonLCReader
Methods inherited from Reader
Constructor Details
This class inherits a constructor from Pliney::MachO::Reader
Instance Attribute Details
#fileoff ⇒ Object (readonly)
Returns the value of attribute fileoff.
359 360 361 |
# File 'lib/pliney/macho.rb', line 359 def fileoff @fileoff end |
#filesize ⇒ Object (readonly)
Returns the value of attribute filesize.
359 360 361 |
# File 'lib/pliney/macho.rb', line 359 def filesize @filesize end |
#flags ⇒ Object (readonly)
Returns the value of attribute flags.
359 360 361 |
# File 'lib/pliney/macho.rb', line 359 def flags @flags end |
#initprot ⇒ Object (readonly)
Returns the value of attribute initprot.
359 360 361 |
# File 'lib/pliney/macho.rb', line 359 def initprot @initprot end |
#maxprot ⇒ Object (readonly)
Returns the value of attribute maxprot.
359 360 361 |
# File 'lib/pliney/macho.rb', line 359 def maxprot @maxprot end |
#nsects ⇒ Object (readonly)
Returns the value of attribute nsects.
359 360 361 |
# File 'lib/pliney/macho.rb', line 359 def nsects @nsects end |
#sections ⇒ Object (readonly)
Returns the value of attribute sections.
361 362 363 |
# File 'lib/pliney/macho.rb', line 361 def sections @sections end |
#segname ⇒ Object (readonly)
Returns the value of attribute segname.
359 360 361 |
# File 'lib/pliney/macho.rb', line 359 def segname @segname end |
#vmaddr ⇒ Object (readonly)
Returns the value of attribute vmaddr.
359 360 361 |
# File 'lib/pliney/macho.rb', line 359 def vmaddr @vmaddr end |
#vmsize ⇒ Object (readonly)
Returns the value of attribute vmsize.
359 360 361 |
# File 'lib/pliney/macho.rb', line 359 def vmsize @vmsize end |
Instance Method Details
#parse ⇒ Object
363 364 365 366 |
# File 'lib/pliney/macho.rb', line 363 def parse() super() @segname = @fh.strictread(16) end |
#segment_name ⇒ Object
368 369 370 |
# File 'lib/pliney/macho.rb', line 368 def segment_name() @segname.unpack("Z16").first end |