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

Function uInt64ToValue

fdbserver/pubsub.actor.cpp:26–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24#include "flow/actorcompiler.h" // This must be the last #include.
25
26Value uInt64ToValue(uint64_t v) {
27 return StringRef(format("%016llx", v));
28}
29uint64_t valueToUInt64(const StringRef& v) {
30 uint64_t x = 0;
31 sscanf(v.toString().c_str(), "%" SCNx64, &x);

Calls 2

StringRefClass · 0.50
formatFunction · 0.50

Tested by

no test coverage detected