blob: 8a1c2191645f5ec363460fb369c17099496a6900 (
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);
}
}
|