blob: 10e7bd07c9c8f3a48593541c0ac107bb11b25e3c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include "md5_stream.h"
namespace NYql {
TMd5OutputStream::TMd5OutputStream(IOutputStream& delegatee)
: Delegatee_(delegatee)
{
}
TString TMd5OutputStream::Finalize() {
char buf[33] = {0};
return TString(Accumulator_.End(buf));
}
void TMd5OutputStream::DoWrite(const void* buf, size_t len) {
Delegatee_.Write(buf, len);
Accumulator_.Update(buf, len);
}
} // namespace NYql
|