MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / section_by_name

Method section_by_name

rust/src/binary_view.rs:896–906  ·  view source on GitHub ↗
(&self, name: S)

Source from the content-addressed store, hash-verified

894 }
895
896 fn section_by_name<S: BnStrCompatible>(&self, name: S) -> Option<Ref<Section>> {
897 unsafe {
898 let raw_name = name.into_bytes_with_nul();
899 let name_ptr = raw_name.as_ref().as_ptr() as *mut _;
900 let raw_section_ptr = BNGetSectionByName(self.as_ref().handle, name_ptr);
901 match raw_section_ptr.is_null() {
902 false => Some(Section::ref_from_raw(raw_section_ptr)),
903 true => None,
904 }
905 }
906 }
907
908 fn sections(&self) -> Array<Section> {
909 unsafe {

Callers 11

dump_dwarfFunction · 0.80
is_non_dwo_dwarfFunction · 0.80
is_dwo_dwarfFunction · 0.80
is_raw_non_dwo_dwarfFunction · 0.80
is_raw_dwo_dwarfFunction · 0.80
has_build_id_sectionFunction · 0.80
create_section_readerFunction · 0.80
parse_unwind_sectionFunction · 0.80
parse_range_data_offsetsFunction · 0.80
get_build_idFunction · 0.80

Implementers 1

binary_view.rsrust/src/binary_view.rs

Calls 2

into_bytes_with_nulMethod · 0.80
as_refMethod · 0.45

Tested by

no test coverage detected