(inode: u64, change_id: u64, start: u64, end: u64)
| 800 | /// Encode an inode-span as 32 bytes for use as an inode_graph key |
| 801 | #[inline] |
| 802 | pub fn encode_inode_vertex(inode: u64, change_id: u64, start: u64, end: u64) -> [u8; 32] { |
| 803 | let mut bytes = [0u8; 32]; |
| 804 | bytes[0..8].copy_from_slice(&inode.to_be_bytes()); |
| 805 | bytes[8..16].copy_from_slice(&change_id.to_be_bytes()); |
| 806 | bytes[16..24].copy_from_slice(&start.to_be_bytes()); |
| 807 | bytes[24..32].copy_from_slice(&end.to_be_bytes()); |
| 808 | bytes |
| 809 | } |
| 810 | |
| 811 | /// Decode an inode-span from 32 bytes |
| 812 | #[inline] |
no outgoing calls