Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidHeaderSize = errors.New("invalid header size")
)
Functions ¶
This section is empty.
Types ¶
type Annotation ¶
type Annotation struct { Visibility byte AnnotationValue }
func NewAnnotation ¶
func NewAnnotation(p Parser) (Annotation, error)
type AnnotationElement ¶
type AnnotationValue ¶
type AnnotationValue struct { Header EncodedAnnotationHeader Elements []AnnotationElement }
type Class ¶
type Dex ¶
type Dex struct { Header defs.DexHeader StringDefs []defs.StringDef MethodProtoDefs []defs.MethodProtoDef MethodDefs []defs.MethodDef ClassDefs []defs.ClassDef FieldDefs []defs.FieldDef TypeIDs []uint32 AuxiliaryStrings map[int]struct{} // contains filtered or unexported fields }
func (*Dex) SanitizeAnnotations ¶
type EncodedAnnotationHeader ¶
type Method ¶
type Parser ¶
type Parser interface { ReadULEB128() (uint64, error) ReadSLEB128() (int64, error) ReadBytes(n int64) ([]byte, error) ReadByte() (byte, error) ReadUint64() (uint64, error) ReadUint32() (uint32, error) ReadUint16() (uint16, error) ReadStruct(any) error SetCursorTo(offset int64) error SkipN(n int64) error }
type Value ¶
type ValueType ¶
type ValueType int8
const ( ValueTypeByte ValueType = iota ValueTypeShort ValueTypeChar ValueTypeInt ValueTypeLong ValueTypeFloat ValueTypeDouble ValueTypeMethodType ValueTypeMethodHandle ValueTypeString ValueTypeType ValueTypeField ValueTypeMethod ValueTypeEnum ValueTypeArray ValueTypeAnnotation ValueTypeNull ValueTypeBoolean )
Source Files
¶
Click to show internal directories.
Click to hide internal directories.