diff options
author | iximeow <me@iximeow.net> | 2021-07-01 01:10:32 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2021-07-01 23:11:51 -0700 |
commit | c216e625815ce15d1c73cecd064888a843cca472 (patch) | |
tree | f79c0d3378920c1d5317b5c11e48a17692d3e86a /test/bench.rs | |
parent | 105c2c505fc8cf4715b7604b0060daf8234dc0aa (diff) |
complete yaxpeax-arch 0.1.0 adaptation, shore up .mem_size()
Diffstat (limited to 'test/bench.rs')
-rw-r--r-- | test/bench.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/bench.rs b/test/bench.rs index 486fa6e..bf73b1b 100644 --- a/test/bench.rs +++ b/test/bench.rs @@ -87,11 +87,11 @@ const DECODE_DATA: [u8; 130] = [ fn do_decode_swathe() { // let mut buf = [0u8; 128]; - let mut iter = DECODE_DATA.iter().map(|x| *x); let mut result = yaxpeax_x86::long_mode::Instruction::invalid(); + let mut reader = yaxpeax_arch::U8Reader::new(&DECODE_DATA[..]); let decoder = yaxpeax_x86::long_mode::InstDecoder::default(); loop { - match decoder.decode_into(&mut result, &mut iter) { + match decoder.decode_into(&mut result, &mut reader) { Ok(()) => { #[cfg(feature = "capstone_bench")] test::black_box(write!(&mut buf[..], "{}", result)); |