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

Function versionToKey

fdbclient/MutationLogReader.actor.cpp:29–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27namespace {
28
29Key versionToKey(Version version, Key prefix) {
30 uint64_t versionBigEndian = bigEndian64(version);
31 return KeyRef((uint8_t*)&versionBigEndian, sizeof(uint64_t)).withPrefix(prefix);
32}
33
34Version keyRefToVersion(KeyRef key, int prefixLen) {
35 return (Version)bigEndian64(*((uint64_t*)key.substr(prefixLen).begin()));

Callers 2

getNext_implMethod · 0.85

Calls 2

KeyRefClass · 0.85
withPrefixMethod · 0.45

Tested by

no test coverage detected