(value: &[u8; 52])
| 563 | /// Returns (mtime_secs, mtime_nanos, file_size, content_hash). |
| 564 | #[inline] |
| 565 | pub fn decode_file_index(value: &[u8; 52]) -> (i64, u32, u64, crate::types::Hash) { |
| 566 | let mtime_secs = i64::from_le_bytes(value[0..8].try_into().unwrap()); |
| 567 | let mtime_nanos = u32::from_le_bytes(value[8..12].try_into().unwrap()); |
| 568 | let file_size = u64::from_le_bytes(value[12..20].try_into().unwrap()); |
| 569 | let mut hash_bytes = [0u8; 32]; |
| 570 | hash_bytes.copy_from_slice(&value[20..52]); |
| 571 | ( |
| 572 | mtime_secs, |
| 573 | mtime_nanos, |
| 574 | file_size, |
| 575 | crate::types::Merkle(hash_bytes), |
| 576 | ) |
| 577 | } |
| 578 | |
| 579 | // V3 Change Storage Tables |
| 580 | // |
no test coverage detected