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

Method read

Lib/test/test_io.py:1035–1038  ·  view source on GitHub ↗
(self, size)

Source from the content-addressed store, hash-verified

1033 def __init__(self, avail):
1034 self.avail = avail
1035 def read(self, size):
1036 result = self.avail[:size]
1037 self.avail = self.avail[size:]
1038 return result
1039 def read1(self, size):
1040 """Returns no more than 5 bytes at once"""
1041 return self.read(min(size, 5))

Callers 1

read1Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected