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

Method readinto

Lib/pickle.py:267–282  ·  view source on GitHub ↗
(self, buf)

Source from the content-addressed store, hash-verified

265 self.current_frame = None
266
267 def readinto(self, buf):
268 if self.current_frame:
269 n = self.current_frame.readinto(buf)
270 if n == 0 and len(buf) != 0:
271 self.current_frame = None
272 n = len(buf)
273 buf[:] = self.file_read(n)
274 return n
275 if n < len(buf):
276 raise UnpicklingError(
277 "pickle exhausted before end of frame")
278 return n
279 else:
280 n = len(buf)
281 buf[:] = self.file_read(n)
282 return n
283
284 def read(self, n):
285 if self.current_frame:

Callers 1

load_bytearray8Method · 0.45

Calls 1

UnpicklingErrorClass · 0.85

Tested by

no test coverage detected