• Home
  • Raw
  • Download

Lines Matching refs:flush

120         self.assertRaises(ValueError, zlib.decompressobj().flush, 0)
121 self.assertRaises(ValueError, zlib.decompressobj().flush, -1)
130 zlib.decompressobj().flush(sys.maxsize + 1)
244 x2 = co.flush()
245 self.assertRaises(zlib.error, co.flush) # second flush should not work
250 y2 = dco.flush()
272 x = co.compress(HAMLET_SCENE) + co.flush()
273 y = do.decompress(x, max_length=len(HAMLET_SCENE)) + do.flush()
285 x2 = co.flush()
288 y2 = dco.flush()
298 bufs.append(co.flush())
303 y2 = dco.flush()
306 def test_decompinc(self, flush=False, source=None, cx=256, dcx=64): argument
314 bufs.append(co.flush())
331 if flush:
332 bufs.append(dco.flush())
348 self.test_decompinc(flush=True)
359 bufs.append(co.flush())
374 bufs.append(dco.flush())
377 def test_decompressmaxlen(self, flush=False): argument
384 bufs.append(co.flush())
399 if flush:
400 bufs.append(dco.flush())
410 self.test_decompressmaxlen(flush=True)
462 b = obj.flush( sync )
464 d = obj.flush()
502 second = co.flush(zlib.Z_SYNC_FLUSH)
514 self.assertTrue(co.flush()) # Returns a zlib header
516 self.assertEqual(dco.flush(), b"") # Returns nothing
526 cd = co.compress(h) + co.flush()
529 self.assertEqual(dco.decompress(cd) + dco.flush(), h)
540 d0 = co.compress(piece) + co.flush(zlib.Z_SYNC_FLUSH)
541 d1 = co.compress(piece[100:]) + co.flush(zlib.Z_SYNC_FLUSH)
542 d2 = co.compress(piece[:-100]) + co.flush(zlib.Z_SYNC_FLUSH)
557 y += dco.flush()
568 dco.flush()
577 dco.flush()
600 data += dco.flush()
610 comp = co.compress(zdict) + co.flush()
612 uncomp = dco.decompress(comp) + dco.flush()
625 self.assertEqual(dco.flush(), input1[1:])
634 self.assertEqual(dco.flush(size), input[1:])
641 self.assertEqual(dco.flush(CustomInt()), input[1:])
657 bufs0.append(c0.flush())
661 bufs1.append(c1.flush())
672 c.flush()
708 d.flush()
728 compress = lambda s: c.compress(s) + c.flush()
734 decompress = lambda s: d.decompress(s) + d.flush()
744 comp = co.compress(data) + co.flush()
745 uncomp = do.decompress(comp) + do.flush()
758 uncomp = do.decompress(comp) + do.flush()
771 uncomp = do.decompress(comp, 1) + do.flush()
791 zlib15 = co.compress(HAMLET_SCENE) + co.flush()
805 zlib9 = co.compress(HAMLET_SCENE) + co.flush()
815 deflate15 = co.compress(HAMLET_SCENE) + co.flush()
821 deflate9 = co.compress(HAMLET_SCENE) + co.flush()
828 gzip = co.compress(HAMLET_SCENE) + co.flush()