Adds ip to data using delta encoding with respect to prev. After completion, `data` will contain `ip` and `prev` will be set to `ip`.
(data: &mut Vec<u8>, prev: &mut InstPtr, ip: InstPtr)
| 283 | /// |
| 284 | /// After completion, `data` will contain `ip` and `prev` will be set to `ip`. |
| 285 | fn push_inst_ptr(data: &mut Vec<u8>, prev: &mut InstPtr, ip: InstPtr) { |
| 286 | let delta = (ip as i32) - (*prev as i32); |
| 287 | write_vari32(data, delta); |
| 288 | *prev = ip; |
| 289 | } |
| 290 | |
| 291 | struct InstPtrs<'a> { |
| 292 | base: usize, |
no test coverage detected