Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ GzipDecompressStream::GzipDecompressStream(InputStream * stream, uint32_t buffer
}
zstream->next_in = NULL;
zstream->avail_in = 0;
_eof = false;
}

GzipDecompressStream::~GzipDecompressStream() {
Expand All @@ -156,7 +155,6 @@ int32_t GzipDecompressStream::read(void * buff, uint32_t length) {
if (zstream->avail_in == 0) {
int32_t rd = _stream->read(_buffer, _capacity);
if (rd <= 0) {
_eof = true;
size_t wt = zstream->next_out - (Bytef*)buff;
return wt > 0 ? wt : -1;
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ class GzipDecompressStream : public DecompressStream {
char * _buffer;
uint32_t _capacity;
void * _zstream;
bool _eof;
public:
GzipDecompressStream(InputStream * stream, uint32_t bufferSizeHint);

Expand Down