diff options
| author | Stefan Boberg <[email protected]> | 2025-03-06 17:35:39 +0100 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2025-03-06 17:35:39 +0100 |
| commit | b044289e3c8fbc4eb4ffa5c1d96da51aa0a41f9b (patch) | |
| tree | a511dd945c87415fb5389e6579299095e3f3afc8 /src/zenstore/cidstore.cpp | |
| parent | switched std::vector -> eastl::vector (diff) | |
| download | zen-sb/eastl.tar.xz zen-sb/eastl.zip | |
std::span -> eastl::spansb/eastl
Diffstat (limited to 'src/zenstore/cidstore.cpp')
| -rw-r--r-- | src/zenstore/cidstore.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/zenstore/cidstore.cpp b/src/zenstore/cidstore.cpp index ca505cc7a..b0125ca1e 100644 --- a/src/zenstore/cidstore.cpp +++ b/src/zenstore/cidstore.cpp @@ -45,7 +45,9 @@ struct CidStore::Impl return {.New = Result.New}; } - eastl::vector<CidStore::InsertResult> AddChunks(std::span<IoBuffer> ChunkDatas, std::span<IoHash> RawHashes, CidStore::InsertMode Mode) + eastl::vector<CidStore::InsertResult> AddChunks(eastl::span<IoBuffer> ChunkDatas, + eastl::span<IoHash> RawHashes, + CidStore::InsertMode Mode) { if (ChunkDatas.size() == 1) { @@ -117,7 +119,7 @@ struct CidStore::Impl InOutChunks.RemoveHashesIf([&](const IoHash& Hash) { return ContainsChunk(Hash); }); } - bool IterateChunks(std::span<IoHash> DecompressedIds, + bool IterateChunks(eastl::span<IoHash> DecompressedIds, const std::function<bool(size_t Index, const IoBuffer& Payload)>& AsyncCallback, WorkerThreadPool* OptionalWorkerPool, uint64_t LargeSizeLimit) @@ -198,7 +200,7 @@ CidStore::AddChunk(const IoBuffer& ChunkData, const IoHash& RawHash, InsertMode } eastl::vector<CidStore::InsertResult> -CidStore::AddChunks(std::span<IoBuffer> ChunkDatas, std::span<IoHash> RawHashes, InsertMode Mode) +CidStore::AddChunks(eastl::span<IoBuffer> ChunkDatas, eastl::span<IoHash> RawHashes, InsertMode Mode) { return m_Impl->AddChunks(ChunkDatas, RawHashes, Mode); } @@ -216,7 +218,7 @@ CidStore::ContainsChunk(const IoHash& DecompressedId) } bool -CidStore::IterateChunks(std::span<IoHash> DecompressedIds, +CidStore::IterateChunks(eastl::span<IoHash> DecompressedIds, const std::function<bool(size_t Index, const IoBuffer& Payload)>& AsyncCallback, WorkerThreadPool* OptionalWorkerPool, uint64_t LargeSizeLimit) |