MCPcopy Create free account
hub / github.com/catboost/catboost / ReadInSmallChunks

Function ReadInSmallChunks

library/cpp/http/io/chunk_ut.cpp:29–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27 }
28
29 void ReadInSmallChunks(IInputStream * stream, TString * contents) {
30 char buf[11];
31 size_t read = 0;
32
33 contents->clear();
34 do {
35 read = stream->Read(buf, sizeof(buf));
36 contents->append(buf, read);
37 } while (read > 0);
38 }
39
40 void ReadCombed(IInputStream * stream, TString * contents, size_t chunkSize) {
41 Y_ASSERT(chunkSize < 128);

Callers 1

Y_UNIT_TESTFunction · 0.85

Calls 3

clearMethod · 0.45
ReadMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected