Class: Rex::PeParsey::PeBase::UnwindCode
- Inherits:
-
Object
- Object
- Rex::PeParsey::PeBase::UnwindCode
- Defined in:
- lib/rex/peparsey/pebase.rb
Instance Attribute Summary collapse
-
#code_offset ⇒ Object
Returns the value of attribute code_offset.
-
#frame_offset ⇒ Object
Returns the value of attribute frame_offset.
-
#op_info ⇒ Object
Returns the value of attribute op_info.
-
#unwind_op ⇒ Object
Returns the value of attribute unwind_op.
Instance Method Summary collapse
-
#initialize(data) ⇒ UnwindCode
constructor
A new instance of UnwindCode.
Constructor Details
#initialize(data) ⇒ UnwindCode
Returns a new instance of 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_offset ⇒ Object
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_offset ⇒ Object
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_info ⇒ Object
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_op ⇒ Object
Returns the value of attribute unwind_op.
1045 1046 1047 |
# File 'lib/rex/peparsey/pebase.rb', line 1045 def unwind_op @unwind_op end |