Class: Android::Resource::ResTableMap

Inherits:
Chunk
  • Object
show all
Defined in:
lib/android/resource.rb

Instance Method Summary collapse

Methods inherited from Chunk

#current_position, #exec_parse, #initialize, #read_int16, #read_int32, #read_int8

Constructor Details

This class inherits a constructor from Android::Resource::Chunk

Instance Method Details

#parseObject



556
557
558
559
# File 'lib/android/resource.rb', line 556

def parse
  @name = read_int32
  @val = ResValue.new(@data, current_position)
end

#sizeObject



553
554
555
# File 'lib/android/resource.rb', line 553

def size
  @val.size + 4
end