Documentation
¶
Index ¶
- Constants
- type AnnotationDef
- type AnnotationSet
- type AnnotationSetDef
- type AnnotationTable
- type AnnotationTables
- type AnnotationsDirectory
- type ClassDef
- type CodeItem
- type DexHeader
- type FieldDef
- type MethodDef
- type MethodProtoDef
- type Parser
- type ProtoDef
- type StringDef
- type StringOffset
- type Table
Constants ¶
View Source
const BEConstant = 0x78563412
View Source
const DexHeaderSize = 0x70
View Source
const LEConstant = 0x12345678
View Source
const Magic = 0x0000000A786564
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnnotationDef ¶
type AnnotationDef struct { Dir AnnotationsDirectory Tables AnnotationTables }
func NewAnnotationDef ¶
func NewAnnotationDef(p Parser) (AnnotationDef, error)
type AnnotationSet ¶
type AnnotationSet struct {
Size uint32
}
type AnnotationSetDef ¶
type AnnotationSetDef struct { Set AnnotationSet Offsets []uint32 }
func NewAnnotationSetDef ¶
func NewAnnotationSetDef(p Parser) (AnnotationSetDef, error)
type AnnotationTable ¶
type AnnotationTables ¶
type AnnotationTables struct { Fields []AnnotationTable Methods []AnnotationTable Parameters []AnnotationTable }
type AnnotationsDirectory ¶
type ClassDef ¶
type ClassDef struct { Index uint32 AccessFlags uint32 Super uint32 InterfacesOffset uint32 SourceFileIndex uint32 AnnotationsOffset uint32 ClassDataOffset uint32 StaticValuesOffset uint32 } // Size: 0x20
func NewClassDef ¶
type CodeItem ¶
type CodeItem struct { Payload []byte // contains filtered or unexported fields }
func NewCodeItem ¶
type DexHeader ¶
type DexHeader struct { Magic uint64 // 0x0 Checksum uint32 // 0x8 Signature [20]byte // 0xc FileSize uint32 // 0x20 HeaderSize uint32 // 0x24 EndianTag uint32 // 0x28 Links Table // 0x2c MapOff uint32 // 0x34 StringIDs Table // 0x38 TypeIDs Table // 0x40 ProtoIDs Table // 0x48 FieldIDs Table // 0x50 MethodIDs Table // 0x58 ClassDefs Table // 0x60 Data Table // 0x68 } // Size: 0x70
func NewDexHeader ¶
type FieldDef ¶
func NewFieldDef ¶
type MethodProtoDef ¶
type MethodProtoDef struct { Shorty uint32 ReturnTypeIdx uint32 Params []uint16 ParamsString string }
func NewMethodProtoDef ¶
func NewMethodProtoDef(p Parser) (MethodProtoDef, error)
type ProtoDef ¶
func NewProtoDef ¶
type StringOffset ¶
type StringOffset uint32
func NewStringOffset ¶
func NewStringOffset(p Parser) (StringOffset, error)
Click to show internal directories.
Click to hide internal directories.