Bitcoin ABC 0.26.3
P2P Digital Currency
|
Writes data to an underlying source stream, while hashing the written data. More...
#include <hash.h>
Public Member Functions | |
HashedSourceWriter (Source &source LIFETIMEBOUND) | |
void | write (Span< const std::byte > src) |
template<typename T > | |
HashedSourceWriter & | operator<< (const T &obj) |
Public Member Functions inherited from CHashWriter | |
CHashWriter (int nTypeIn, int nVersionIn) | |
int | GetType () const |
int | GetVersion () const |
template<typename T > | |
CHashWriter & | operator<< (const T &obj) |
Public Member Functions inherited from HashWriter | |
void | write (Span< const std::byte > src) |
uint256 | GetHash () |
Compute the double-SHA256 hash of all data written to this object. | |
uint256 | GetSHA256 () |
Compute the SHA256 hash of all data written to this object. | |
uint64_t | GetCheapHash () |
Returns the first 64 bits from the resulting hash. | |
template<typename T > | |
HashWriter & | operator<< (const T &obj) |
Private Attributes | |
Source & | m_source |
Writes data to an underlying source stream, while hashing the written data.
|
inlineexplicit |
|
inline |
|
inline |
|
private |