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 137
def initialize(type, origin, len=nil)
        @origin, @type = origin, type
        @len = len if len
end

Public Instance Methods

==(o)
Alias for: eql?
eql?(o) click to toggle source
# File metasm/disassemble.rb, line 143
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 142
def hash ; @origin.hash ; end