Class: Msf::Util::DotNetDeserialization::Types::General::MemberTypeInfo

Inherits:
BinData::Record
  • Object
show all
Defined in:
lib/msf/util/dot_net_deserialization/types/general.rb

Instance Method Summary collapse

Instance Method Details

#member_typesObject


47
48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/msf/util/dot_net_deserialization/types/general.rb', line 47

def member_types
  infos = []
  additional_info_index = 0
  binary_type_enums.each do |binary_type|
    additional_info = nil
    if has_additional_info?(binary_type)
      additional_info = additional_infos[additional_info_index].value
      additional_info_index += 1
    end
    infos << {binary_type: binary_type, additional_info: additional_info}
  end
  infos
end