Class: Android::Resource::ChunkHeader

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

Direct Known Subclasses

ResStringPool, ResTableHeader

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data, offset) ⇒ ChunkHeader

Returns a new instance of ChunkHeader.



12
13
14
15
16
17
18
# File 'lib/android/resource.rb', line 12

def initialize(data, offset)
  @data = data
  @offset = offset
  @data_io = StringIO.new(@data, 'rb')
  @data_io.seek(offset)
  parse
end

Instance Attribute Details

#header_sizeObject (readonly)

Returns the value of attribute header_size.



11
12
13
# File 'lib/android/resource.rb', line 11

def header_size
  @header_size
end

#sizeObject (readonly)

Returns the value of attribute size.



11
12
13
# File 'lib/android/resource.rb', line 11

def size
  @size
end

#typeObject (readonly)

Returns the value of attribute type.



11
12
13
# File 'lib/android/resource.rb', line 11

def type
  @type
end