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.



1038
1039
1040
1041
1042
1043
1044
1045
1046
# File 'lib/rex/peparsey/pebase.rb', line 1038

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.



1048
1049
1050
# File 'lib/rex/peparsey/pebase.rb', line 1048

def code_offset
  @code_offset
end

#frame_offsetObject

Returns the value of attribute frame_offset.



1048
1049
1050
# File 'lib/rex/peparsey/pebase.rb', line 1048

def frame_offset
  @frame_offset
end

#op_infoObject

Returns the value of attribute op_info.



1048
1049
1050
# File 'lib/rex/peparsey/pebase.rb', line 1048

def op_info
  @op_info
end

#unwind_opObject

Returns the value of attribute unwind_op.



1048
1049
1050
# File 'lib/rex/peparsey/pebase.rb', line 1048

def unwind_op
  @unwind_op
end