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

Method read

tools/python-3.11.9-amd64/Lib/ssl.py:912–922  ·  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

910 return self._sslobj.server_hostname
911
912 def read(self, len=1024, buffer=None):
913 """Read up to 'len' bytes from the SSL object and return them.
914
915 If 'buffer' is provided, read into this buffer and return the number of
916 bytes read.
917 """
918 if buffer is not None:
919 v = self._sslobj.read(len, buffer)
920 else:
921 v = self._sslobj.read(len)
922 return v
923
924 def write(self, data):
925 """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