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

Method load_long4

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

Source from the content-addressed store, hash-verified

1416 dispatch[LONG1[0]] = load_long1
1417
1418 def load_long4(self):
1419 n, = unpack('<i', self.read(4))
1420 if n < 0:
1421 # Corrupt or hostile pickle -- we never write one like this
1422 raise UnpicklingError("LONG pickle has negative byte count")
1423 data = self.read(n)
1424 self.append(decode_long(data))
1425 dispatch[LONG4[0]] = load_long4
1426
1427 def load_float(self):

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected