Class: Pliney::MachO::CommonDylibCommandReader
- Inherits:
-
CommonLCReader
- Object
- Reader
- CommonLCReader
- Pliney::MachO::CommonDylibCommandReader
- Defined in:
- lib/pliney/macho.rb
Direct Known Subclasses
LC_ID_DYLIB_Reader, LC_LOAD_DYLIB_Reader, LC_LOAD_WEAK_DYLIB_Reader, LC_REEXPORT_DYLIB_Reader
Instance Attribute Summary collapse
-
#dylib_name_data ⇒ Object
readonly
Returns the value of attribute dylib_name_data.
-
#dylib_struct ⇒ Object
readonly
Returns the value of attribute dylib_struct.
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
#dylib_name_data ⇒ Object (readonly)
Returns the value of attribute dylib_name_data.
518 519 520 |
# File 'lib/pliney/macho.rb', line 518 def dylib_name_data @dylib_name_data end |
#dylib_struct ⇒ Object (readonly)
Returns the value of attribute dylib_struct.
518 519 520 |
# File 'lib/pliney/macho.rb', line 518 def dylib_struct @dylib_struct end |
Instance Method Details
#dylib_name ⇒ Object
526 527 528 |
# File 'lib/pliney/macho.rb', line 526 def dylib_name() @dylib_name_data.unpack("Z*").first end |
#parse ⇒ Object
520 521 522 523 524 |
# File 'lib/pliney/macho.rb', line 520 def parse() super() @dylib_struct = DylibStructReader.parse(@fh) @dylib_name_data = @fh.strictread(self.cmdsize - self.dylib_struct.offset) end |