MCPcopy Index your code
hub / github.com/cloudpipe/cloudpickle / _read_all_bytes

Function _read_all_bytes

tests/testutils.py:97–104  ·  view source on GitHub ↗
(stream_in, chunk_size=4096)

Source from the content-addressed store, hash-verified

95
96
97def _read_all_bytes(stream_in, chunk_size=4096):
98 all_data = b""
99 while True:
100 data = stream_in.read(chunk_size)
101 all_data += data
102 if len(data) < chunk_size:
103 break
104 return all_data
105
106
107def pickle_echo(stream_in=None, stream_out=None, protocol=None):

Callers 1

pickle_echoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…