From 72968a35438e5284a0ba63c947e70f8880b3abb5 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 1 Jun 2025 08:46:23 +0000 Subject: DecodeEverything wasn't useful, no better than InstDecoder::default()?? --- ffi/src/long_mode.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ffi/src') diff --git a/ffi/src/long_mode.rs b/ffi/src/long_mode.rs index a9e296f..d0d3f22 100644 --- a/ffi/src/long_mode.rs +++ b/ffi/src/long_mode.rs @@ -5,7 +5,7 @@ use yaxpeax_x86::long_mode; pub unsafe extern "C" fn yaxpeax_x86_64_decode(data: *const u8, length: u64, inst: *mut long_mode::Instruction) -> bool { let inst: &mut long_mode::Instruction = core::mem::transmute(inst); let mut reader = U8Reader::new(core::slice::from_raw_parts(data as *const u8, length as usize)); - (yaxpeax_x86::long_mode::DecodeEverything {}).decode_into(inst, &mut reader).is_err() + ::Decoder::default().decode_into(inst, &mut reader).is_err() } #[no_mangle] -- cgit v1.1