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