MCPcopy Index your code
hub / github.com/RustPython/RustPython / readinto

Method readinto

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

Source from the content-addressed store, hash-verified

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

Callers 1

load_bytearray8Method · 0.45

Calls 2

lenFunction · 0.85
UnpicklingErrorClass · 0.85

Tested by

no test coverage detected