#include <BlockHasher.h>
Definition at line 33 of file BlockHasher.h.
◆ BlockHasher() [1/3]
audacity::cloud::audiocom::sync::BlockHasher::BlockHasher |
( |
| ) |
|
|
default |
◆ ~BlockHasher()
audacity::cloud::audiocom::sync::BlockHasher::~BlockHasher |
( |
| ) |
|
|
default |
◆ BlockHasher() [2/3]
audacity::cloud::audiocom::sync::BlockHasher::BlockHasher |
( |
const BlockHasher & |
| ) |
|
|
delete |
◆ BlockHasher() [3/3]
audacity::cloud::audiocom::sync::BlockHasher::BlockHasher |
( |
BlockHasher && |
| ) |
|
|
delete |
◆ ComputeHashes()
bool audacity::cloud::audiocom::sync::BlockHasher::ComputeHashes |
( |
BlockHashCache & |
cache, |
|
|
std::vector< LockedBlock > |
blocks, |
|
|
std::function< void()> |
onComplete |
|
) |
| |
Definition at line 160 of file BlockHasher.cpp.
163{
165 return false;
166
167 if (blocks.empty())
168 {
169 if (onComplete)
170 onComplete();
171
172 return true;
173 }
174
175 mWorkers = std::make_unique<Workers>(
176 cache, std::move(blocks), std::move(onComplete));
177
178 return true;
179}
std::unique_ptr< Workers > mWorkers
References mWorkers.
◆ IsReady()
bool audacity::cloud::audiocom::sync::BlockHasher::IsReady |
( |
| ) |
const |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ TakeResult()
std::vector< std::pair< int64_t, std::string > > audacity::cloud::audiocom::sync::BlockHasher::TakeResult |
( |
| ) |
|
◆ mWorkers
std::unique_ptr<Workers> audacity::cloud::audiocom::sync::BlockHasher::mWorkers |
|
private |
The documentation for this class was generated from the following files: