| 107 | } |
| 108 | |
| 109 | void ZlibCompressStream::close() { |
| 110 | if (state_ == ZlibStreamState::INITIALIZED) { |
| 111 | if (write(nullptr, 0U) == 0) { |
| 112 | state_ = ZlibStreamState::FINISHED; |
| 113 | } |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | ZlibDecompressStream::ZlibDecompressStream(gsl::not_null<OutputStream*> output, ZlibCompressionFormat format) |
| 118 | : ZlibBaseStream(output) { |
no outgoing calls