Adler-32.
More...
#include <base/security/Adler32.h>
Inherits Object, and PushInterface.
|
static const unsigned int | BASE = 65521 |
|
Adler-32.
Implementation of the Adler-32 checksum algorithm as specified by RFC 1950.
Should only be used for compatibility with legacy systems.
- See also
- CRC32
- Version
- 1.0
- Examples
- testsuite/digest.cpp.
◆ Adler32()
◆ getTotalSize()
uint64 Adler32::getTotalSize |
( |
| ) |
const |
|
inlinenoexcept |
Returns the total size of the original message.
◆ getValue()
uint32 Adler32::getValue |
( |
| ) |
const |
|
inlinenoexcept |
◆ push()
MemorySize Adler32::push |
( |
const uint8 * |
buffer, |
|
|
MemorySize |
size |
|
) |
| |
|
virtualnoexcept |
Updates the checksum corresponding to the specified data. May be called multiple times.
- Parameters
-
buffer | The buffer holding the data. |
size | The number of octets in the buffer. |
Implements PushInterface.
- Examples
- testsuite/digest.cpp.
◆ setValue()
void Adler32::setValue |
( |
uint32 |
value | ) |
|
|
inlinenoexcept |
◆ BASE
const unsigned int Adler32::BASE = 65521 |
|
static |
The largest prime smaller than 65536.