add type to generated dex file

This commit is contained in:
Jean-Marie Mineau 2023-12-01 12:38:54 +01:00
parent df9149c068
commit 211402ae9d
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
11 changed files with 328 additions and 132 deletions

View file

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