| 19 | constexpr size_t kIStreamCopyBufferLength = 16 * 1024; |
| 20 | |
| 21 | void IStream::CopyFromStream(IStream& stream, uint64_t length) |
| 22 | { |
| 23 | StreamReadBuffer buffer(stream, length, kIStreamCopyBufferLength); |
| 24 | while (buffer) |
| 25 | { |
| 26 | auto block = buffer.ReadBlock(stream); |
| 27 | this->Write(block.first, block.second); |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | std::string IStream::ReadString() |
| 32 | { |
no test coverage detected