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

Returns a new instance of UnwindCode.



1054
1055
1056
1057
1058
1059
1060
1061
1062
# File 'lib/rex/peparsey/pebase.rb', line 1054

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.



1064
1065
1066
# File 'lib/rex/peparsey/pebase.rb', line 1064

def code_offset
  @code_offset
end

#frame_offsetObject

Returns the value of attribute frame_offset.



1064
1065
1066
# File 'lib/rex/peparsey/pebase.rb', line 1064

def frame_offset
  @frame_offset
end

#op_infoObject

Returns the value of attribute op_info.



1064
1065
1066
# File 'lib/rex/peparsey/pebase.rb', line 1064

def op_info
  @op_info
end

#unwind_opObject

Returns the value of attribute unwind_op.



1064
1065
1066
# File 'lib/rex/peparsey/pebase.rb', line 1064

def unwind_op
  @unwind_op
end