MCPcopy Create free account
hub / github.com/ElementsProject/elements / PackSequenceAndType

Function PackSequenceAndType

src/leveldb/db/dbformat.cc:16–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14namespace leveldb {
15
16static uint64_t PackSequenceAndType(uint64_t seq, ValueType t) {
17 assert(seq <= kMaxSequenceNumber);
18 assert(t <= kValueTypeForSeek);
19 return (seq << 8) | t;
20}
21
22void AppendInternalKey(std::string* result, const ParsedInternalKey& key) {
23 result->append(key.user_key.data(), key.user_key.size());

Callers 4

AppendInternalKeyFunction · 0.85
FindShortestSeparatorMethod · 0.85
FindShortSuccessorMethod · 0.85
LookupKeyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected