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

Method load_binbytes

Lib/pickle.py:1463–1468  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1461 dispatch[BINSTRING[0]] = load_binstring
1462
1463 def load_binbytes(self):
1464 len, = unpack('<I', self.read(4))
1465 if len > maxsize:
1466 raise UnpicklingError("BINBYTES exceeds system's maximum size "
1467 "of %d bytes" % maxsize)
1468 self.append(self.read(len))
1469 dispatch[BINBYTES[0]] = load_binbytes
1470
1471 def load_unicode(self):

Callers

nothing calls this directly

Calls 4

unpackFunction · 0.90
UnpicklingErrorClass · 0.85
readMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected