Method
pc_rel
(&mut self, offset: PcRelOffset)
Source from the content-addressed store, hash-verified
| 1019 | /// Calculates the `offset` for the current instruction `I`. |
| 1020 | #[inline] |
| 1021 | fn pc_rel<I: Encode>(&mut self, offset: PcRelOffset) -> NonNull<u8> { |
| 1022 | let offset = isize::try_from(i32::from(offset)).unwrap(); |
| 1023 | unsafe { self.current_pc::<I>().offset(offset) } |
| 1024 | } |
| 1025 | |
| 1026 | /// Performs a relative jump of `offset` bytes from the current instruction. |
| 1027 | /// |
Callers
nothing calls this directly
Tested by
no test coverage detected