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

Method as_raw

rust/src/relocation.rs:152–175  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

150 }
151
152 pub(crate) fn as_raw(&self) -> BNRelocationInfo {
153 BNRelocationInfo {
154 type_: self.type_.into(),
155 pcRelative: self.pc_relative,
156 baseRelative: self.base_relative,
157 base: self.base,
158 size: self.size,
159 truncateSize: self.truncate_size,
160 nativeType: self.native_type,
161 addend: self.addend,
162 hasSign: self.has_sign,
163 implicitAddend: self.implicit_addend,
164 external: self.external,
165 symbolIndex: self.symbol_index,
166 sectionIndex: self.section_index,
167 address: self.address,
168 target: self.target,
169 dataRelocation: self.data_relocation,
170 relocationDataCache: self.relocation_data_cache,
171 // TODO: How to handle this?
172 prev: core::ptr::null_mut(),
173 next: core::ptr::null_mut(),
174 }
175 }
176}
177
178impl Default for RelocationInfo {

Callers 11

get_relocation_infoMethod · 0.45
cb_get_relocation_infoFunction · 0.45
assembleMethod · 0.45
add_type_libraryMethod · 0.45
import_type_libraryMethod · 0.45
import_type_objectMethod · 0.45
deserialize_snapshotMethod · 0.45
write_global_dataMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected