add struct to parse whole dex file
This commit is contained in:
parent
df2a441148
commit
6562c3f6c0
4 changed files with 284 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ pub struct MapItem {
|
|||
}
|
||||
|
||||
/// The type of the items refered by a [`MapItem`]: <https://source.android.com/docs/core/runtime/dex-format#type-codes>
|
||||
#[derive(Serializable, Clone, Copy, PartialEq, Eq, Debug)]
|
||||
#[derive(Serializable, Clone, Copy, PartialEq, Eq, Debug, Hash)]
|
||||
#[prefix_type(u16)]
|
||||
pub enum MapItemType {
|
||||
#[prefix(0x0000)]
|
||||
|
|
@ -67,6 +67,8 @@ pub enum MapItemType {
|
|||
AnnotationsDirectoryItem,
|
||||
#[prefix(0xF000)]
|
||||
HiddenapiClassDataItem,
|
||||
#[default_variant]
|
||||
UnkownType(u16),
|
||||
}
|
||||
|
||||
impl MapList {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue