(&self)
| 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 | |
| 178 | impl Default for RelocationInfo { |
no outgoing calls
no test coverage detected