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

Method load_readonly_buffer

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

Source from the content-addressed store, hash-verified

1518 dispatch[NEXT_BUFFER[0]] = load_next_buffer
1519
1520 def load_readonly_buffer(self):
1521 buf = self.stack[-1]
1522 with memoryview(buf) as m:
1523 if not m.readonly:
1524 self.stack[-1] = m.toreadonly()
1525 dispatch[READONLY_BUFFER[0]] = load_readonly_buffer
1526
1527 def load_short_binstring(self):

Callers

nothing calls this directly

Calls 1

toreadonlyMethod · 0.80

Tested by

no test coverage detected