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

Method getbuffer

tools/python-3.11.9-amd64/Lib/_pyio.py:929–934  ·  view source on GitHub ↗

Return a readable and writable view of the buffer.

(self)

Source from the content-addressed store, hash-verified

927 return bytes(self._buffer)
928
929 def getbuffer(self):
930 """Return a readable and writable view of the buffer.
931 """
932 if self.closed:
933 raise ValueError("getbuffer on closed file")
934 return memoryview(self._buffer)
935
936 def close(self):
937 if self._buffer is not None:

Callers 5

dumpsMethod · 0.95
_launchMethod · 0.95
_launchMethod · 0.95
file_digestFunction · 0.45
commit_frameMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected