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

Method read

Lib/pickle.py:280–291  ·  view source on GitHub ↗
(self, n)

Source from the content-addressed store, hash-verified

278 return n
279
280 def read(self, n):
281 if self.current_frame:
282 data = self.current_frame.read(n)
283 if not data and n != 0:
284 self.current_frame = None
285 return self.file_read(n)
286 if len(data) < n:
287 raise UnpicklingError(
288 "pickle exhausted before end of frame")
289 return data
290 else:
291 return self.file_read(n)
292
293 def readline(self):
294 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 2

lenFunction · 0.85
UnpicklingErrorClass · 0.85

Tested by

no test coverage detected