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

Method read1

Lib/gzip.py:351–360  ·  view source on GitHub ↗

Implements BufferedIOBase.read1() Reads up to a buffer's worth of data if size is negative.

(self, size=-1)

Source from the content-addressed store, hash-verified

349 return self._buffer.read(size)
350
351 def read1(self, size=-1):
352 """Implements BufferedIOBase.read1()
353
354 Reads up to a buffer's worth of data if size is negative."""
355 self._check_not_closed()
356 self._check_read("read1")
357
358 if size < 0:
359 size = io.DEFAULT_BUFFER_SIZE
360 return self._buffer.read1(size)
361
362 def readinto(self, b):
363 self._check_not_closed()

Callers

nothing calls this directly

Calls 2

_check_readMethod · 0.95
_check_not_closedMethod · 0.80

Tested by

no test coverage detected