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

Method _recv_bytes

Lib/multiprocessing/connection.py:429–437  ·  view source on GitHub ↗
(self, maxsize=None)

Source from the content-addressed store, hash-verified

427 self._send(header + buf)
428
429 def _recv_bytes(self, maxsize=None):
430 buf = self._recv(4)
431 size, = struct.unpack("!i", buf.getvalue())
432 if size == -1:
433 buf = self._recv(8)
434 size, = struct.unpack("!Q", buf.getvalue())
435 if maxsize is not None and size > maxsize:
436 return None
437 return self._recv(size)
438
439 def _poll(self, timeout):
440 r = wait([self], timeout)

Callers 4

getMethod · 0.45
recv_bytesMethod · 0.45
recv_bytes_intoMethod · 0.45
recvMethod · 0.45

Calls 3

_recvMethod · 0.95
unpackMethod · 0.45
getvalueMethod · 0.45

Tested by

no test coverage detected