MCPcopy Index your code
hub / github.com/python/cpython / _chunked_file_read

Method _chunked_file_read

Lib/pickle.py:310–317  ·  view source on GitHub ↗
(self, size)

Source from the content-addressed store, hash-verified

308 return self.file_readline()
309
310 def _chunked_file_read(self, size):
311 cursize = min(size, _MIN_READ_BUF_SIZE)
312 b = self.file_read(cursize)
313 while cursize < size and len(b) == cursize:
314 delta = min(cursize, size - cursize)
315 b += self.file_read(delta)
316 cursize += delta
317 return b
318
319 def load_frame(self, frame_size):
320 if self.current_frame and self.current_frame.read() != b'':

Callers 2

readMethod · 0.95
load_frameMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected