MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / readinto

Method readinto

tools/python-3.11.9-amd64/Lib/pickle.py:270–285  ·  view source on GitHub ↗
(self, buf)

Source from the content-addressed store, hash-verified

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

Callers 1

load_bytearray8Method · 0.45

Calls 1

UnpicklingErrorClass · 0.85

Tested by

no test coverage detected