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

Method recv_into

Lib/ssl.py:1340–1357  ·  view source on GitHub ↗
(self, buffer, nbytes=None, flags=0)

Source from the content-addressed store, hash-verified

1338 return super().recv(buflen, flags)
1339
1340 def recv_into(self, buffer, nbytes=None, flags=0):
1341 self._checkClosed()
1342 if nbytes is None:
1343 if buffer is not None:
1344 with memoryview(buffer) as view:
1345 nbytes = view.nbytes
1346 if not nbytes:
1347 nbytes = 1024
1348 else:
1349 nbytes = 1024
1350 if self._sslobj is not None:
1351 if flags != 0:
1352 raise ValueError(
1353 "non-zero flags not allowed in calls to recv_into() on %s" %
1354 self.__class__)
1355 return self.read(nbytes, buffer)
1356 else:
1357 return super().recv_into(buffer, nbytes, flags)
1358
1359 def recvfrom(self, buflen=1024, flags=0):
1360 self._checkClosed()

Callers 1

readintoMethod · 0.45

Calls 3

_checkClosedMethod · 0.95
readMethod · 0.95
superClass · 0.85

Tested by

no test coverage detected