MCPcopy Create free account
hub / github.com/Selectively11/CloudRedirect / FingerprintUpload

Function FingerprintUpload

src/common/cloud_work_queue.cpp:96–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94static bool HasFailedWorkForPrefix(const std::string& prefix);
95
96static uint64_t FingerprintUpload(const std::vector<uint8_t>& data) {
97 uint64_t hash = 1469598103934665603ULL;
98 for (uint8_t byte : data) {
99 hash ^= byte;
100 hash *= 1099511628211ULL;
101 }
102 hash ^= static_cast<uint64_t>(data.size());
103 hash *= 1099511628211ULL;
104 return hash;
105}
106
107static bool HasQueuedDeleteForPathLocked(const std::string& path) {
108 for (const auto& queued : g_workQueue) {

Callers 2

WorkerLoopFunction · 0.85
EnqueueWorkFunction · 0.85

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected