(key: &[u8; 24])
| 800 | /// Decode a span from 24 bytes |
| 801 | #[inline] |
| 802 | pub fn decode_vertex(key: &[u8; 24]) -> (u64, u64, u64) { |
| 803 | let change_id = u64::from_be_bytes(key[0..8].try_into().unwrap()); |
| 804 | let start = u64::from_be_bytes(key[8..16].try_into().unwrap()); |
| 805 | let end = u64::from_be_bytes(key[16..24].try_into().unwrap()); |
| 806 | (change_id, start, end) |
| 807 | } |
| 808 | |
| 809 | /// Encode an inode-span as 32 bytes for use as an inode_graph key |
| 810 | #[inline] |