Lines Matching refs:data
6 BUFFER_SIZE = io.DEFAULT_BUFFER_SIZE # Compressed data read chunk size
56 # trailing data to ignore
68 data = self.read(len(byte_view))
69 byte_view[:len(data)] = data
70 return len(data)
78 data = None # Default if EOF is encountered
79 # Depending on the input data, our call to the decompressor may not
80 # return any data. In this case, try again after reading another block.
91 data = self._decompressor.decompress(rawblock, size)
93 # Trailing data isn't a valid compressed stream; ignore it.
103 data = self._decompressor.decompress(rawblock, size)
104 if data:
106 if not data:
110 self._pos += len(data)
111 return data
118 while data := self.read(sys.maxsize):
119 chunks.append(data)
123 # Rewind the file to the beginning of the data stream.
151 # Read and discard data until we reach the desired position.
153 data = self.read(min(io.DEFAULT_BUFFER_SIZE, offset))
154 if not data:
156 offset -= len(data)