add DexWriter squeleton
This commit is contained in:
parent
80968c9bcf
commit
e194072981
4 changed files with 6 additions and 4 deletions
|
|
@ -5,7 +5,7 @@ use crate::{DexFileMagic, EndianConstant, Serializable};
|
|||
|
||||
/// <https://source.android.com/docs/core/runtime/dex-format#header-item>
|
||||
/// alignment: 4 bytes
|
||||
#[derive(Serializable, PartialEq, Eq, Debug)]
|
||||
#[derive(Serializable, Clone, PartialEq, Eq, Debug)]
|
||||
pub struct HeaderItem {
|
||||
pub magic: DexFileMagic,
|
||||
pub checksum: u32,
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ use std::io::Write;
|
|||
|
||||
/// <https://source.android.com/docs/core/runtime/dex-format#map-list>
|
||||
/// alignment: 4 bytes
|
||||
#[derive(Clone, PartialEq, Eq, Debug)]
|
||||
#[derive(Clone, PartialEq, Eq, Debug, Default)]
|
||||
pub struct MapList {
|
||||
// pub size: u32,
|
||||
pub list: Vec<MapItem>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue