We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd66618 commit 791d517Copy full SHA for 791d517
src/isal/igzip.py
@@ -249,6 +249,7 @@ def __init__(self, fp):
249
# Set flag indicating start of a new member
250
self._new_member = True
251
self._last_mtime = None
252
+ self._read_buffer_size = READ_BUFFER_SIZE
253
254
def read(self, size=-1):
255
if size < 0:
@@ -282,7 +283,7 @@ def read(self, size=-1):
282
283
284
# Read a chunk of data from the file
285
if self._decompressor.needs_input:
- buf = self._fp.read(READ_BUFFER_SIZE)
286
+ buf = self._fp.read(self._read_buffer_size)
287
uncompress = self._decompressor.decompress(buf, size)
288
else:
289
uncompress = self._decompressor.decompress(b"", size)
0 commit comments