Class: Relyze::DiffResults::DiffInstructionResult

Inherits:
DiffBaseResult show all
Defined in:
C:/Program Files/Relyze/lib/relyze/core/diff_results.rb

Instance Attribute Summary

Attributes inherited from DiffBaseResult

#difference, #matched_rva, #parent, #rva, #type

Instance Method Summary collapse

Methods inherited from DiffBaseResult

#_generate_child, #get_child, #get_children, #initialize, #is_added?, #is_equal?, #is_modified?, #is_removed?, #matched

Constructor Details

This class inherits a constructor from Relyze::DiffResults::DiffBaseResult

Instance Method Details

#instructionRelyze::ExecutableFileModel::Instruction?

Get the #instruction associated with this diff result.



229
230
231
# File 'C:/Program Files/Relyze/lib/relyze/core/diff_results.rb', line 229

def instruction
    @parent.block.instruction( self.rva )
end

#nameString

Get the name of this diff result.

Returns:

  • (String)

    This diff results name.



236
237
238
# File 'C:/Program Files/Relyze/lib/relyze/core/diff_results.rb', line 236

def name
    "inst_0x%X" % [ self.rva ]
end
iv>