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

Method read

tools/python-3.11.9-amd64/Lib/pickle.py:287–298  ·  view source on GitHub ↗
(self, n)

Source from the content-addressed store, hash-verified

285 return n
286
287 def read(self, n):
288 if self.current_frame:
289 data = self.current_frame.read(n)
290 if not data and n != 0:
291 self.current_frame = None
292 return self.file_read(n)
293 if len(data) < n:
294 raise UnpicklingError(
295 "pickle exhausted before end of frame")
296 return data
297 else:
298 return self.file_read(n)
299
300 def readline(self):
301 if self.current_frame:

Callers 15

load_frameMethod · 0.45
load_protoMethod · 0.45
load_frameMethod · 0.45
load_binintMethod · 0.45
load_binint1Method · 0.45
load_binint2Method · 0.45
load_long1Method · 0.45
load_long4Method · 0.45
load_binfloatMethod · 0.45
load_binstringMethod · 0.45
load_binbytesMethod · 0.45
load_binunicodeMethod · 0.45

Calls 1

UnpicklingErrorClass · 0.85

Tested by

no test coverage detected