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

Method load_binstring

tools/python-3.11.9-amd64/Lib/pickle.py:1341–1347  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1339 dispatch[STRING[0]] = load_string
1340
1341 def load_binstring(self):
1342 # Deprecated BINSTRING uses signed 32-bit length
1343 len, = unpack('<i', self.read(4))
1344 if len < 0:
1345 raise UnpicklingError("BINSTRING pickle has negative byte count")
1346 data = self.read(len)
1347 self.append(self._decode_string(data))
1348 dispatch[BINSTRING[0]] = load_binstring
1349
1350 def load_binbytes(self):

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected