Crates.io | smali_disassembler |
lib.rs | smali_disassembler |
version | 0.1.2 |
source | src |
created_at | 2024-09-21 18:44:59.083087 |
updated_at | 2024-09-21 20:27:54.140643 |
description | smali disassembler written fully in Rust |
homepage | |
repository | |
max_upload_size | |
id | 1382412 |
size | 65,471 |
VERY simple smali disassembler written in Rust
use smali_disassembler::SmaliDecoder;
fn main() {
let raw_bytes = [0u8; 4];
let smali_decoder = SmaliDecoder::new(&raw_bytes);
let disassembled_smali_code = smali_decoder.decode_all();
println!("result {:#x?}", disassembled_smali_code)
}
result [
DalvikInstruction {
inst: Nop,
offset: 0x0,
},
DalvikInstruction {
inst: Nop,
offset: 0x2,
},
]