MCPcopy Create free account
hub / github.com/apple/foundationdb / blobGranuleFileKeyRangeFor

Function blobGranuleFileKeyRangeFor

fdbclient/SystemData.cpp:1375–1381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1373}
1374
1375const KeyRange blobGranuleFileKeyRangeFor(UID granuleID) {
1376 BinaryWriter wr(AssumeVersion(ProtocolVersion::withBlobGranule()));
1377 wr.serializeBytes(blobGranuleFileKeys.begin);
1378 wr << granuleID;
1379 Key startKey = wr.toValue();
1380 return KeyRangeRef(startKey, strinc(startKey));
1381}
1382
1383const Value blobGranuleFileValueFor(StringRef const& filename,
1384 int64_t offset,

Calls 5

AssumeVersionFunction · 0.85
KeyRangeRefClass · 0.50
strincFunction · 0.50
serializeBytesMethod · 0.45
toValueMethod · 0.45

Tested by

no test coverage detected