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

Function toStringRef

fdbserver/KeyValueStoreShardedRocksDB.actor.cpp:159–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159StringRef toStringRef(rocksdb::Slice s) {
160 return StringRef(reinterpret_cast<const uint8_t*>(s.data()), s.size());
161}
162
163std::string getShardMappingKey(KeyRef key, StringRef prefix) {
164 return prefix.toString() + key.toString();

Callers 3

readRangeInDbFunction · 0.70
DeleteRangeCFMethod · 0.70
actionMethod · 0.70

Calls 3

StringRefClass · 0.50
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected