(
&self,
bv: &BinaryView,
arch: &CoreArchitecture,
info: &mut [RelocationInfo],
)
| 319 | type Handle = Self; |
| 320 | |
| 321 | fn get_relocation_info( |
| 322 | &self, |
| 323 | bv: &BinaryView, |
| 324 | arch: &CoreArchitecture, |
| 325 | info: &mut [RelocationInfo], |
| 326 | ) -> bool { |
| 327 | let mut raw_info = info.iter().map(|i| i.as_raw()).collect::<Vec<_>>(); |
| 328 | let res = unsafe { |
| 329 | BNRelocationHandlerGetRelocationInfo( |
| 330 | self.0, |
| 331 | bv.handle, |
| 332 | arch.handle, |
| 333 | raw_info.as_mut_ptr(), |
| 334 | raw_info.len(), |
| 335 | ) |
| 336 | }; |
| 337 | for (info, raw) in info.iter_mut().zip(raw_info.iter()) { |
| 338 | *info = RelocationInfo::from_raw(raw); |
| 339 | } |
| 340 | res |
| 341 | } |
| 342 | |
| 343 | fn apply_relocation( |
| 344 | &self, |
no test coverage detected