MCPcopy Index your code
hub / github.com/python/cpython / load_binstring

Method load_binstring

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

Source from the content-addressed store, hash-verified

1478 dispatch[STRING[0]] = load_string
1479
1480 def load_binstring(self):
1481 # Deprecated BINSTRING uses signed 32-bit length
1482 len, = unpack('<i', self.read(4))
1483 if len < 0:
1484 raise UnpicklingError("BINSTRING pickle has negative byte count")
1485 data = self.read(len)
1486 self.append(self._decode_string(data))
1487 dispatch[BINSTRING[0]] = load_binstring
1488
1489 def load_binbytes(self):

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected