| 15 | } |
| 16 | |
| 17 | StringBox AssetBytesStore::registerAssetBytes(const BytesView& bytes) { |
| 18 | std::lock_guard<Mutex> lock(_mutex); |
| 19 | auto id = ++_assetKeyBytesIdSequence; |
| 20 | |
| 21 | auto url = STRING_FORMAT("{}{}", getAssetBytesStoreUrlPrefix(), id); |
| 22 | _bytesByUrl[url] = bytes; |
| 23 | return url; |
| 24 | } |
| 25 | |
| 26 | void AssetBytesStore::unregisterAssetBytes(const StringBox& url) { |
| 27 | std::lock_guard<Mutex> lock(_mutex); |
no outgoing calls
no test coverage detected