| 1351 | const uint8_t BG_FILE_TYPE_SNAPSHOT = 'S'; |
| 1352 | |
| 1353 | const Key blobGranuleFileKeyFor(UID granuleID, Version fileVersion, uint8_t fileType) { |
| 1354 | ASSERT(fileType == 'D' || fileType == 'S'); |
| 1355 | BinaryWriter wr(AssumeVersion(ProtocolVersion::withBlobGranule())); |
| 1356 | wr.serializeBytes(blobGranuleFileKeys.begin); |
| 1357 | wr << granuleID; |
| 1358 | wr << bigEndian64(fileVersion); |
| 1359 | wr << fileType; |
| 1360 | return wr.toValue(); |
| 1361 | } |
| 1362 | |
| 1363 | std::tuple<UID, Version, uint8_t> decodeBlobGranuleFileKey(KeyRef const& key) { |
| 1364 | UID granuleID; |
no test coverage detected