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

Method getbuffer

Lib/_pyio.py:899–904  ·  view source on GitHub ↗

Return a readable and writable view of the buffer.

(self)

Source from the content-addressed store, hash-verified

897 return bytes(self._buffer)
898
899 def getbuffer(self):
900 """Return a readable and writable view of the buffer.
901 """
902 if self.closed:
903 raise ValueError("getbuffer on closed file")
904 return memoryview(self._buffer)
905
906 def close(self):
907 if self._buffer is not None:

Callers 13

dumpsMethod · 0.95
_launchMethod · 0.95
_launchMethod · 0.95
_load_packageFunction · 0.95
file_digestFunction · 0.45
commit_frameMethod · 0.45
test_getbufferMethod · 0.45
test_getbuffer_emptyMethod · 0.45
__buffer__Method · 0.45
recvMethod · 0.45
_recv_bytesMethod · 0.45

Calls

no outgoing calls

Tested by 4

test_getbufferMethod · 0.36
test_getbuffer_emptyMethod · 0.36
__buffer__Method · 0.36