(self, output_stream, chunk)
| 29 | self.count = 0 |
| 30 | |
| 31 | def process(self, output_stream, chunk): |
| 32 | needed = self.length - self.count |
| 33 | if needed <= len(chunk): |
| 34 | part_of_result, remainder = chunk[:needed], chunk[needed:] |
| 35 | output_stream.write(part_of_result) |
| 36 | return True, remainder |
| 37 | |
| 38 | self.count += len(chunk) |
| 39 | output_stream.write(chunk) |
| 40 | return False, b"" |
| 41 | |
| 42 | |
| 43 | def readuntil(input_stream, initial_chunk, finder, output_stream, chunk_size): |
no test coverage detected