MCPcopy Create free account
hub / github.com/encounter/objdiff / find_code_section

Function find_code_section

objdiff-core/src/obj/mdebug.rs:171–177  ·  view source on GitHub ↗
(sections: &mut [Section], address: u64)

Source from the content-addressed store, hash-verified

169}
170
171fn find_code_section(sections: &mut [Section], address: u64) -> Option<&mut Section> {
172 sections.iter_mut().find(|section| {
173 section.kind == SectionKind::Code
174 && address >= section.address
175 && address < section.address + section.size
176 })
177}
178
179fn decode_delta(
180 endianness: Endianness,

Callers 1

assign_linesFunction · 0.85

Calls 1

iter_mutMethod · 0.80

Tested by

no test coverage detected