add struct to parse whole dex file

This commit is contained in:
Jean-Marie Mineau 2023-08-30 17:17:11 +02:00
parent df2a441148
commit 6562c3f6c0
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
4 changed files with 284 additions and 1 deletions

View file

@ -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 {