(out: &mut Vec<u8>, previous: &mut u64, n: u64)
| 8 | Ok(*previous) |
| 9 | } |
| 10 | fn delta(out: &mut Vec<u8>, previous: &mut u64, n: u64) { |
| 11 | let d = n.wrapping_sub(*previous); |
| 12 | transforms::put(out, (d << 1) ^ ((d as i64 >> 63) as u64)); |
| 13 | *previous = n; |
| 14 | } |
| 15 | |
| 16 | pub fn split_references(view: &View<'_>) -> Result<Vec<u8>> { |
| 17 | let mut input = view.references; |
no test coverage detected