MCPcopy Index your code
hub / github.com/python/cpython / read

Method read

Lib/ssl.py:859–869  ·  view source on GitHub ↗

Read up to 'len' bytes from the SSL object and return them. If 'buffer' is provided, read into this buffer and return the number of bytes read.

(self, len=1024, buffer=None)

Source from the content-addressed store, hash-verified

857 return self._sslobj.server_hostname
858
859 def read(self, len=1024, buffer=None):
860 """Read up to 'len' bytes from the SSL object and return them.
861
862 If 'buffer' is provided, read into this buffer and return the number of
863 bytes read.
864 """
865 if buffer is not None:
866 v = self._sslobj.read(len, buffer)
867 else:
868 v = self._sslobj.read(len)
869 return v
870
871 def write(self, data):
872 """Write 'data' to the SSL object and return the number of bytes

Callers 1

readMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected