(key: &[u8; 16])
| 830 | /// Decode a position from 16 bytes |
| 831 | #[inline] |
| 832 | pub fn decode_position(key: &[u8; 16]) -> (u64, u64) { |
| 833 | let change_id = u64::from_be_bytes(key[0..8].try_into().unwrap()); |
| 834 | let pos = u64::from_be_bytes(key[8..16].try_into().unwrap()); |
| 835 | (change_id, pos) |
| 836 | } |
| 837 | |
| 838 | /// Encode a view-sequence pair as 16 bytes |
| 839 | #[inline] |