MCPcopy Index your code
hub / github.com/encounter/objdiff / decoder

Method decoder

objdiff-core/src/arch/x86.rs:39–49  ·  view source on GitHub ↗
(&self, code: &'a [u8], address: u64)

Source from the content-addressed store, hash-verified

37 }
38
39 fn decoder<'a>(&self, code: &'a [u8], address: u64) -> Decoder<'a> {
40 Decoder::with_ip(
41 match self.arch {
42 Architecture::X86 => 32,
43 Architecture::X86_64 => 64,
44 },
45 code,
46 address,
47 DecoderOptions::NONE,
48 )
49 }
50
51 fn formatter(&self, diff_config: &DiffObjConfig) -> Box<dyn iced_x86::Formatter> {
52 let mut formatter: Box<dyn iced_x86::Formatter> = match diff_config.x86_formatter {

Callers 3

display_instructionMethod · 0.80
infer_function_sizeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected