Class: Rex::PeParsey::PeBase::UnwindCode

Inherits:
Object
  • Object
show all
Defined in:
lib/rex/peparsey/pebase.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ UnwindCode


1035
1036
1037
1038
1039
1040
1041
1042
1043
# File 'lib/rex/peparsey/pebase.rb', line 1035

def initialize(data)

  self.code_offset  = data[0].to_i
  self.unwind_op    = data[1].to_i & 0xf
  self.op_info      = data[1].to_i >> 4
  self.frame_offset = data[2..3].unpack("v")[0]

  data.slice!(0, 4)
end

Instance Attribute Details

#code_offsetObject

Returns the value of attribute code_offset


1045
1046
1047
# File 'lib/rex/peparsey/pebase.rb', line 1045

def code_offset
  @code_offset
end

#frame_offsetObject

Returns the value of attribute frame_offset


1045
1046
1047
# File 'lib/rex/peparsey/pebase.rb', line 1045

def frame_offset
  @frame_offset
end

#op_infoObject

Returns the value of attribute op_info


1045
1046
1047
# File 'lib/rex/peparsey/pebase.rb', line 1045

def op_info
  @op_info
end

#unwind_opObject

Returns the value of attribute unwind_op


1045
1046
1047
# File 'lib/rex/peparsey/pebase.rb', line 1045

def unwind_op
  @unwind_op
end