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.
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.
References sha1_, and pwiz::util::SHA1Calculator::update().
48 const char* dest_begin_orig = dest_begin;
50 for (; src_begin!=src_end && dest_begin!=dest_end; ++src_begin, ++dest_begin)
51 *dest_begin = *src_begin;
53 sha1_.
update(reinterpret_cast<const unsigned char*>(dest_begin_orig),
54 dest_begin - dest_begin_orig);
void pwiz::util::SHA1SymmetricFilter::close |
( |
) | |
|
|
inline |
std::string pwiz::util::SHA1SymmetricFilter::hash |
( |
) | |
|
|
inline |
The documentation for this class was generated from the following file: