289
289
% (size, self._start, self._size))
295
295
# Don't read past the range definition
296
296
limited = self._start + self._size - self._pos
298
298
limited = min(limited, size)
299
osutils.pumpfile(self._file, buffer, limited, self._max_read_size)
299
osutils.pumpfile(self._file, buf, limited, self._max_read_size)
302
302
# Update _pos respecting the data effectively read