Go to the SVN repository for this file.
1 #ifndef MD5_WRITER_HPP__ 2 #define MD5_WRITER_HPP__ 36 #if NCBI_PRODUCTION_VER > 20110000 51 template<
typenameBuffer>
63 size_t* bytes_written = 0)
76std::vector<unsigned char> digest(16);
92wstr << MSerial_AsnBinary << align;
96md5.GetMD5Sum(md5_str);
97TUniqueAligns::iterator it =
98unique_aligns.find(md5_str);
99if (it != unique_aligns.end()) {
103unique_aligns.insert(TUniqueAligns::value_type
Checksum and hash calculation classes.
ERW_Result Write(const void *src, size_t count, size_t *bytes_written)
Write up to "count" bytes from the buffer pointed to by the "buf" argument onto the output device.
CChecksum â Checksum calculator.
Stream hook that calculates the MD5 digest of the data passed to a CBufferWriter.
CBufferWriter< TBuffer > TBufferWriter
virtual ERW_Result Flush()
Flush pending data (if any) down to the output device.
CMD5StreamWriter(TBuffer &buf, EBufferWriter_CreateMode truncate=eCreateMode_Truncate)
virtual ERW_Result Write(const void *buf, size_t count, size_t *bytes_written=0)
Write up to "count" bytes from the buffer pointed to by the "buf" argument onto the output device.
std::vector< unsigned char > GetMD5Sum() const
Include a standard set of the NCBI C++ Toolkit most basic headers.
void GetMD5Digest(unsigned char digest[16]) const
Return calculated MD5 digest.
void AddChars(const char *str, size_t len)
Update current control sum with data provided.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
ERW_Result
Result codes for I/O operations.
@ eRW_Success
Everything is okay, I/O completed.
Adaptor for writing to a resizable buffer using IWriter interface.
EBufferWriter_CreateMode
Flag indicating if the lower level container should be cleared (of the pre-existing data) in the CBuf...
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4