A writer stream (for serialization) that computes a 256-bit hash.
More...
#include <hash.h>
A writer stream (for serialization) that computes a 256-bit hash.
Definition at line 99 of file hash.h.
◆ CHashWriter()
CHashWriter::CHashWriter |
( |
int |
nTypeIn, |
|
|
int |
nVersionIn |
|
) |
| |
|
inline |
◆ GetCheapHash()
uint64_t CHashWriter::GetCheapHash |
( |
| ) |
|
|
inline |
Returns the first 64 bits from the resulting hash.
Definition at line 145 of file hash.h.
◆ GetHash()
Compute the double-SHA256 hash of all data written to this object.
Invalidates this object.
Definition at line 122 of file hash.h.
◆ GetSHA256()
Compute the SHA256 hash of all data written to this object.
Invalidates this object.
Definition at line 136 of file hash.h.
◆ GetType()
int CHashWriter::GetType |
( |
| ) |
const |
|
inline |
◆ GetVersion()
int CHashWriter::GetVersion |
( |
| ) |
const |
|
inline |
◆ operator<<()
◆ write()
void CHashWriter::write |
( |
Span< const std::byte > |
src | ) |
|
|
inline |
◆ ctx
◆ nType
const int CHashWriter::nType |
|
private |
◆ nVersion
const int CHashWriter::nVersion |
|
private |
The documentation for this class was generated from the following file: