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

Method load_binstring

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

Source from the content-addressed store, hash-verified

1452 dispatch[STRING[0]] = load_string
1453
1454 def load_binstring(self):
1455 # Deprecated BINSTRING uses signed 32-bit length
1456 len, = unpack('<i', self.read(4))
1457 if len < 0:
1458 raise UnpicklingError("BINSTRING pickle has negative byte count")
1459 data = self.read(len)
1460 self.append(self._decode_string(data))
1461 dispatch[BINSTRING[0]] = load_binstring
1462
1463 def load_binbytes(self):

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected