Skip to main content

Crate ddc_dex

Crate ddc_dex 

Source
Expand description

ddc-dex — DEX container parsing and Dalvik instruction decoding.

Pure, allocation-light, read-only access to a .dex image:

  • DexFile walks the header, id tables, class defs, code items and annotations lazily (indices resolved on demand, strings cached).
  • insn decodes Dalvik instructions in all formats plus the three payload pseudo-instructions.

The decompiler front-end lives in ddc-dec; this crate only turns bytes into a structured view, never fails hard on malformed regions (accessors return None / u32::MAX sentinels).

Re-exports§

pub use code::CatchHandler;
pub use code::CodeItem;
pub use code::TryItem;

Modules§

annotations
encoded_value, annotations and static-value arrays.
code
code_item: register frame, insns, try table and catch handlers.
insn
Dalvik instruction decoding: all formats plus payload pseudo-instructions.
reader
Little-endian cursor: u1..u8 reads, LEB128, MUTF-8.

Structs§

ClassData
One class_data_item, fully expanded (index diffs applied).
ClassDef
One class_def_item.
DexFile
A parsed DEX image.
EncodedField
One encoded_field.
EncodedMethod
One encoded_method.
FieldId
MethodId
ProtoId

Constants§

DEX_HEADER_SIZE
NO_INDEX
Index sentinel for “absent”.