(key: &[u8; 32])
| 811 | /// Decode an inode-span from 32 bytes |
| 812 | #[inline] |
| 813 | pub fn decode_inode_vertex(key: &[u8; 32]) -> (u64, u64, u64, u64) { |
| 814 | let inode = u64::from_be_bytes(key[0..8].try_into().unwrap()); |
| 815 | let change_id = u64::from_be_bytes(key[8..16].try_into().unwrap()); |
| 816 | let start = u64::from_be_bytes(key[16..24].try_into().unwrap()); |
| 817 | let end = u64::from_be_bytes(key[24..32].try_into().unwrap()); |
| 818 | (inode, change_id, start, end) |
| 819 | } |
| 820 | |
| 821 | /// Encode a position as 16 bytes |
| 822 | #[inline] |