WIP
This commit is contained in:
parent
559ae665cf
commit
68b11dc036
5 changed files with 91 additions and 12 deletions
|
|
@ -12,7 +12,8 @@ pub struct ClassDefItem {
|
|||
pub class_idx: u32,
|
||||
/// See <https://source.android.com/docs/core/runtime/dex-format#access-flags>
|
||||
pub access_flags: u32,
|
||||
/// Either index of a [`crate::TypeIdItem`] in `type_ids`, must be a class or NO_INDEX
|
||||
/// Either index of a [`crate::TypeIdItem`] in `type_ids`, must be a class or
|
||||
/// [`crate::NO_INDEX`]
|
||||
pub superclass_idx: u32,
|
||||
/// 0 if no interfaces, else offset to a [`crate::TypeList`].
|
||||
pub interfaces_off: u32,
|
||||
|
|
@ -247,6 +248,6 @@ impl Serializable for TypeList {
|
|||
/// <https://source.android.com/docs/core/runtime/dex-format#type-item-format>
|
||||
#[derive(Serializable, Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub struct TypeItem {
|
||||
/// Index into the `type_ids` list.
|
||||
/// Index of a [`crate::TypeIdItem`] in the `type_ids` list.
|
||||
pub type_idx: u16,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ pub use map::*;
|
|||
/// alignment: 4 bytes
|
||||
#[derive(Serializable, Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub struct StringIdItem {
|
||||
/// Offset of a [`crate::StringDataItem`].
|
||||
pub string_data_off: u32,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue