| 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); |
no test coverage detected