(file: &ExternalFile)
| 30 | pub(super) const APPLIED: TableDefinition<u64, u8> = TableDefinition::new("span_patch_applied_v1"); |
| 31 | |
| 32 | fn file_key(file: &ExternalFile) -> [u8; 36] { |
| 33 | let mut key = [0; 36]; |
| 34 | key[..32].copy_from_slice(file.owner.as_bytes()); |
| 35 | key[32..].copy_from_slice(&file.ordinal.to_be_bytes()); |
| 36 | key |
| 37 | } |
| 38 | |
| 39 | fn words<const N: usize>(values: [u64; N]) -> Vec<u8> { |
| 40 | values.into_iter().flat_map(u64::to_be_bytes).collect() |
no test coverage detected