Class: Android::Resource::ChunkHeader
- Inherits:
-
Object
- Object
- Android::Resource::ChunkHeader
- Defined in:
- lib/android/resource.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#header_size ⇒ Object
readonly
Returns the value of attribute header_size.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(data, offset) ⇒ ChunkHeader
constructor
A new instance of ChunkHeader.
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_size ⇒ Object (readonly)
Returns the value of attribute header_size.
11 12 13 |
# File 'lib/android/resource.rb', line 11 def header_size @header_size end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
11 12 13 |
# File 'lib/android/resource.rb', line 11 def size @size end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
11 12 13 |
# File 'lib/android/resource.rb', line 11 def type @type end |