model of boost::iostreams::SymmetricFilter
More...
#include <SHA1_ostream.hpp>
|
bool | filter (const char *&src_begin, const char *src_end, char *&dest_begin, char *dest_end, bool flush) |
|
void | close () |
|
std::string | hash () |
|
model of boost::iostreams::SymmetricFilter
Definition at line 39 of file SHA1_ostream.hpp.
◆ char_type
◆ filter()
bool pwiz::util::SHA1SymmetricFilter::filter |
( |
const char *& |
src_begin, |
|
|
const char * |
src_end, |
|
|
char *& |
dest_begin, |
|
|
char * |
dest_end, |
|
|
bool |
flush |
|
) |
| |
|
inline |
Definition at line 45 of file SHA1_ostream.hpp.
47 {
48 const char* dest_begin_orig = dest_begin;
49
50 for (; src_begin!=src_end && dest_begin!=dest_end; ++src_begin, ++dest_begin)
51 *dest_begin = *src_begin;
52
53 sha1_.
update(
reinterpret_cast<const unsigned char*
>(dest_begin_orig),
54 dest_begin - dest_begin_orig);
55
56 return false;
57 }
void update(const unsigned char *buffer, size_t bufferSize)
update hash with buffer of bytes
References sha1_, and pwiz::util::SHA1Calculator::update().
◆ close()
void pwiz::util::SHA1SymmetricFilter::close |
( |
| ) |
|
|
inline |
◆ hash()
std::string pwiz::util::SHA1SymmetricFilter::hash |
( |
| ) |
|
|
inline |
◆ sha1_
The documentation for this class was generated from the following file:
- /data/libpwiz-dev3648559106/libpwiz-3.0.18342/pwiz/utility/misc/SHA1_ostream.hpp