Class: Android::Dex::DexObject::MethodIdItem

Inherits:
Android::Dex::DexObject show all
Defined in:
lib/android/dex/dex_object.rb

Overview

method_id_item

Instance Attribute Summary

Attributes inherited from Android::Dex::DexObject

#size

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Android::Dex::DexObject

#[], #initialize, #inspect, #symbols

Constructor Details

This class inherits a constructor from Android::Dex::DexObject

Class Method Details

.sizeObject

Note:

this method for DexObject#read_class_array (private method)

return parse data size

Returns:

  • bytes



283
284
285
# File 'lib/android/dex/dex_object.rb', line 283

def self.size
  2 * 2 + 4
end

Instance Method Details

#parseObject



286
287
288
289
290
# File 'lib/android/dex/dex_object.rb', line 286

def parse
  @params[:class_idx] = read_value(:ushort)
  @params[:proto_idx] = read_value(:ushort)
  @params[:name_idx] = read_value(:uint)
end