Expand description
ddc-dex — DEX container parsing and Dalvik instruction decoding.
Pure, allocation-light, read-only access to a .dex image:
DexFilewalks the header, id tables, class defs, code items and annotations lazily (indices resolved on demand, strings cached).insndecodes 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§
- Class
Data - One
class_data_item, fully expanded (index diffs applied). - Class
Def - One
class_def_item. - Debug
Local - One source-level local from the debug-info local table: the name is
valid for
regover[start, end)in code units. - DexFile
- A parsed DEX image.
- Encoded
Field - One
encoded_field. - Encoded
Method - One
encoded_method. - FieldId
- Method
Id - ProtoId
Constants§
- DEX_
HEADER_ SIZE - NO_
INDEX - Index sentinel for “absent”.