Class: Android::Resource::ResTableType
- Inherits:
-
ChunkHeader
- Object
- Chunk
- ChunkHeader
- Android::Resource::ResTableType
- Defined in:
- lib/android/resource.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#entry_count ⇒ Object
readonly
Returns the value of attribute entry_count.
-
#entry_start ⇒ Object
readonly
Returns the value of attribute entry_start.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#keys ⇒ Object
readonly
Returns the value of attribute keys.
Attributes inherited from ChunkHeader
Instance Method Summary collapse
- #[](index) ⇒ ResTableEntry, ResTableMapEntry
-
#initialize(data, offset, pkg) ⇒ ResTableType
constructor
A new instance of ResTableType.
- #inspect ⇒ Object
Methods inherited from Chunk
#current_position, #exec_parse, #read_int16, #read_int32, #read_int8
Constructor Details
#initialize(data, offset, pkg) ⇒ ResTableType
Returns a new instance of ResTableType.
298 299 300 301 |
# File 'lib/android/resource.rb', line 298 def initialize(data, offset, pkg) @pkg = pkg super(data, offset) end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
295 296 297 |
# File 'lib/android/resource.rb', line 295 def config @config end |
#entry_count ⇒ Object (readonly)
Returns the value of attribute entry_count.
295 296 297 |
# File 'lib/android/resource.rb', line 295 def entry_count @entry_count end |
#entry_start ⇒ Object (readonly)
Returns the value of attribute entry_start.
295 296 297 |
# File 'lib/android/resource.rb', line 295 def entry_start @entry_start end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
295 296 297 |
# File 'lib/android/resource.rb', line 295 def id @id end |
#keys ⇒ Object (readonly)
Returns the value of attribute keys.
296 297 298 |
# File 'lib/android/resource.rb', line 296 def keys @keys end |
Instance Method Details
#[](index) ⇒ ResTableEntry, ResTableMapEntry
307 308 309 |
# File 'lib/android/resource.rb', line 307 def [](index) @entries[index] end |
#inspect ⇒ Object
337 338 339 340 |
# File 'lib/android/resource.rb', line 337 def inspect "<ResTableType offset:0x#{@offset.to_s(16)}, id:#{@id}, " + "count:#{@entry_count}, start:0x#{@entry_start.to_s(16)}>" end |