diff options
Diffstat (limited to 'o3d/import/cross/gz_compressor.h')
-rw-r--r-- | o3d/import/cross/gz_compressor.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/o3d/import/cross/gz_compressor.h b/o3d/import/cross/gz_compressor.h index bdf13a1..43dbf0f 100644 --- a/o3d/import/cross/gz_compressor.h +++ b/o3d/import/cross/gz_compressor.h @@ -49,18 +49,19 @@ class GzCompressor : public StreamProcessor { explicit GzCompressor(StreamProcessor *callback_client); virtual ~GzCompressor(); - virtual int ProcessBytes(MemoryReadStream *stream, size_t bytes_to_process); + virtual Status ProcessBytes(MemoryReadStream *stream, + size_t bytes_to_process); // Must call when all bytes to compress have been sent (with ProcessBytes) - void Finalize(); + virtual void Close(bool success); private: - int CompressBytes(MemoryReadStream *stream, - size_t bytes_to_process, - bool flush); + Status CompressBytes(MemoryReadStream *stream, + size_t bytes_to_process, + bool flush); z_stream strm_; // low-level zlib state - int init_result_; + bool initialized_; bool stream_is_closed_; StreamProcessor *callback_client_; |