(bytes: &[u8; 12])
| 265 | /// ``` |
| 266 | #[inline] |
| 267 | pub fn decode_trunk_id(bytes: &[u8; 12]) -> TrunkId { |
| 268 | let change_id = NodeId::new(u64::from_le_bytes(bytes[0..8].try_into().unwrap())); |
| 269 | let file_idx = u32::from_le_bytes(bytes[8..12].try_into().unwrap()); |
| 270 | TrunkId::new(change_id, file_idx) |
| 271 | } |
| 272 | |
| 273 | /// Encode a BranchId as 12 bytes for storage. |
| 274 | /// |