MCPcopy Create free account
hub / github.com/baidu/tera / PackUserKey

Function PackUserKey

src/io/coding.cc:37–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37void PackUserKey(const std::string& key, int64_t timestamp, UserKeyType type,
38 std::string* packed_key) {
39 packed_key->assign(key);
40 PutFixed64(packed_key, PackTimestampAndType(timestamp, type));
41}
42
43bool UnpackUserKey(const leveldb::Slice& packed_key, leveldb::Slice* short_key, int64_t* timestamp,
44 UserKeyType* type) {

Callers

nothing calls this directly

Calls 2

PackTimestampAndTypeFunction · 0.85
PutFixed64Function · 0.70

Tested by

no test coverage detected