| 56 | }; |
| 57 | struct 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 | }; |
| 65 | static std::mutex g_memBlobMtx; |
| 66 | static std::unordered_map<BlobKey, std::vector<uint8_t>, BlobKeyHash> g_memBlobs; |
nothing calls this directly
no outgoing calls
no test coverage detected