class Android::Resource::ResTableEntry
Constants
- FLAG_COMPLEX
If set, this is a complex entry, holding a set of name/value mappings. It is followed by an array of ResTable_map structures.
- FLAG_PUBLIC
If set, this resource has been declared public, so libraries are allowed to reference it.
- NO_ENTRY
Attributes
key[R]
size[R]
val[R]
Public Class Methods
read_entry(data, offset)
click to toggle source
@return [ResTableEntry] if not set FLAG_COMPLEX
@return [ResTableMapEntry] if not set FLAG_COMPLEX
# File lib/android/resource.rb, line 385 def self.read_entry(data, offset) flag = data[offset + 2, 2].unpack('v')[0] if flag & ResTableEntry::FLAG_COMPLEX == 0 ResTableEntry.new(data, offset) else ResTableMapEntry.new(data, offset) end end
Public Instance Methods
inspect()
click to toggle source
# File lib/android/resource.rb, line 410 def inspect "<ResTableEntry @size=#{@size}, @key=#{@key} @flag=#{@flag}>" end
Private Instance Methods
parse()
click to toggle source
# File lib/android/resource.rb, line 402 def parse @size = read_int16 @flag = read_int16 @key = read_int32 # RefStringPool_key @val = ResValue.new(@data, current_position) end