(key: &[u8; 32])
| 839 | /// Decode an inode-span from 32 bytes |
| 840 | #[inline] |
| 841 | pub fn decode_inode_vertex(key: &[u8; 32]) -> (u64, u64, u64, u64) { |
| 842 | let inode = u64::from_be_bytes(key[0..8].try_into().unwrap()); |
| 843 | let change_id = u64::from_be_bytes(key[8..16].try_into().unwrap()); |
| 844 | let start = u64::from_be_bytes(key[16..24].try_into().unwrap()); |
| 845 | let end = u64::from_be_bytes(key[24..32].try_into().unwrap()); |
| 846 | (inode, change_id, start, end) |
| 847 | } |
| 848 | |
| 849 | /// Encode a position as 16 bytes |
| 850 | #[inline] |