MCPcopy
hub / github.com/bugsink/bugsink / process

Method process

ingest/parsers.py:31–40  ·  view source on GitHub ↗
(self, output_stream, chunk)

Source from the content-addressed store, hash-verified

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
43def readuntil(input_stream, initial_chunk, finder, output_stream, chunk_size):

Callers 4

brotli_generatorFunction · 0.45
writeMethod · 0.45
readuntilFunction · 0.45
construct_br_bombMethod · 0.45

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected