add type to generated dex file
This commit is contained in:
parent
df9149c068
commit
211402ae9d
11 changed files with 328 additions and 132 deletions
|
|
@ -1,5 +1,7 @@
|
|||
//! The items structures.
|
||||
|
||||
use std::cmp::{Ord, PartialOrd};
|
||||
|
||||
use crate as androscalpel_serializer;
|
||||
use crate::{EncodedArray, Serializable};
|
||||
|
||||
|
|
@ -27,7 +29,7 @@ pub use crate::StringDataItem;
|
|||
|
||||
/// <https://source.android.com/docs/core/runtime/dex-format#type-id-item>
|
||||
/// alignment: 4 bytes
|
||||
#[derive(Serializable, Debug, Clone, Copy, PartialEq, Eq)]
|
||||
#[derive(Serializable, Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
|
||||
pub struct TypeIdItem {
|
||||
/// Index of a [`StringIdItem`] in `string_ids`.
|
||||
pub descriptor_idx: u32,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue