class Metasm::Xref
a cross-reference, tracks read/write/execute memory accesses by decoded instructions
Attributes
len[RW]
length of r/w (in bytes)
origin[RW]
address of the instruction responsible of the xref
type[RW]
:r/:w/:x
Public Class Methods
new(type, origin, len=nil)
click to toggle source
XXX list of instructions intervening in the backtrace ?
# File metasm/disassemble.rb, line 129 def initialize(type, origin, len=nil) @origin, @type = origin, type @len = len if len end
Public Instance Methods
eql?(o)
click to toggle source
# File metasm/disassemble.rb, line 135 def eql?(o) o.class == self.class and [type, len, origin] == [o.type, o.len, o.origin] end
Also aliased as: ==
hash()
click to toggle source
# File metasm/disassemble.rb, line 134 def hash ; @origin.hash ; end