A thread safe checksums calculator.
More...
A thread safe checksums calculator.
Definition at line 54 of file ckcalculator.cpp.
◆ ThreadSafeChecksumCalculator() [1/3]
| libxcks::ThreadSafeChecksumCalculator::ThreadSafeChecksumCalculator |
( |
| ) |
|
|
delete |
Deleted default constructor.
◆ ThreadSafeChecksumCalculator() [2/3]
Deleted copy constructor.
◆ ThreadSafeChecksumCalculator() [3/3]
| libxcks::ThreadSafeChecksumCalculator::ThreadSafeChecksumCalculator |
( |
const ArrayChecksum & |
ckArray | ) |
|
|
inline |
Constructor.
- Parameters
-
| ckArray | The array of checksums. |
Definition at line 76 of file ckcalculator.cpp.
◆ nextChecksumToProcess()
| Checksum* libxcks::ThreadSafeChecksumCalculator::nextChecksumToProcess |
( |
| ) |
|
|
inline |
Gets the next checksum to process.
- Returns
- The next checksum to process or
nullptr if there is no more checksum to process.
Definition at line 94 of file ckcalculator.cpp.
◆ operator=()
Delete assignment operator.
◆ resetChecksumToProcess()
| void libxcks::ThreadSafeChecksumCalculator::resetChecksumToProcess |
( |
| ) |
|
|
inline |
◆ updateChecksum()
Updates the checksums with specified array of bytes.
- Parameters
-
| c | The checksum instance to update. |
| buf | The buffer to use. |
| len | The buffer's length. |
Definition at line 110 of file ckcalculator.cpp.
◆ checksums
◆ curCk
| size_t libxcks::ThreadSafeChecksumCalculator::curCk |
|
protected |
◆ mutex
| shared_mutex libxcks::ThreadSafeChecksumCalculator::mutex |
|
mutableprotected |
The documentation for this class was generated from the following file: