MCPcopy Create free account
hub / github.com/Selectively11/CloudRedirect / operator()

Method operator()

src/platform/linux/http_server.cpp:58–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56};
57struct BlobKeyHash {
58 size_t operator()(const BlobKey& k) const {
59 size_t h = std::hash<uint32_t>{}(k.accountId);
60 h ^= std::hash<uint32_t>{}(k.appId) + 0x9e3779b9 + (h << 6) + (h >> 2);
61 h ^= std::hash<std::string>{}(k.filename) + 0x9e3779b9 + (h << 6) + (h >> 2);
62 return h;
63 }
64};
65static std::mutex g_memBlobMtx;
66static std::unordered_map<BlobKey, std::vector<uint8_t>, BlobKeyHash> g_memBlobs;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected