#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 164 of file BlockHasher.cpp.
167{
169 return false;
170
171 if (blocks.empty())
172 {
173 if (onComplete)
174 onComplete();
175
176 return true;
177 }
178
179 mWorkers = std::make_unique<Workers>(
180 cache, std::move(blocks), std::move(onComplete));
181
182 return true;
183}
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: