dex++ 0.3.1
C++ and C API reference
Loading...
Searching...
No Matches
dex::axml::TypedValue Struct Reference

A typed attribute value (Res_value). More...

#include <apk/axml.hpp>

Public Types

enum class  Type : uint8_t {
  Null = 0x00 , Reference = 0x01 , Attribute = 0x02 , String = 0x03 ,
  Float = 0x04 , Dimension = 0x05 , Fraction = 0x06 , IntDec = 0x10 ,
  IntHex = 0x11 , Bool = 0x12 , ColorArgb8 = 0x1c , ColorRgb8 = 0x1d ,
  ColorArgb4 = 0x1e , ColorRgb4 = 0x1f
}
 

Public Member Functions

bool is (Type t) const
 

Public Attributes

uint8_t type = 0
 Raw dataType byte; compare against Type values.
 
uint32_t data = 0
 

Detailed Description

A typed attribute value (Res_value).

data is interpreted per type.

Member Enumeration Documentation

◆ Type

enum class dex::axml::TypedValue::Type : uint8_t
strong
Enumerator
Null 
Reference 

data = resource id (0x7f....)

Attribute 
String 

data = string-pool index

Float 
Dimension 
Fraction 
IntDec 
IntHex 
Bool 

data: 0 = false, nonzero = true

ColorArgb8 
ColorRgb8 
ColorArgb4 
ColorRgb4 

Member Function Documentation

◆ is()

bool dex::axml::TypedValue::is ( Type  t) const
inline

Member Data Documentation

◆ type

uint8_t dex::axml::TypedValue::type = 0

Raw dataType byte; compare against Type values.

◆ data

uint32_t dex::axml::TypedValue::data = 0

The documentation for this struct was generated from the following file: