Lines Matching refs:compress
91 self.assertRaises(zlib.error, zlib.compress, b'ERROR', 10)
96 self.assertRaises(TypeError, zlib.compress)
101 self.assertRaises(TypeError, zlib.compress, arg)
148 compressed = zlib.compress(data, 1)
164 x = zlib.compress(HAMLET_SCENE)
168 x = zlib.compress(HAMLET_SCENE, level=3)
171 zlib.compress(data=HAMLET_SCENE, level=3)
180 x = zlib.compress(data)
181 self.assertEqual(zlib.compress(bytearray(data)), x)
187 x = zlib.compress(HAMLET_SCENE)
196 compress = lambda s: zlib.compress(s, 1) function
197 self.check_big_compress_buffer(size, compress)
207 compressed = zlib.compress(data, 1)
212 compressed = zlib.compress(data, 1)
220 comp = zlib.compress(data, 0)
231 datazip = zlib.compress(datasrc)
235 x1 = co.compress(data)
261 co.compress(data=HAMLET_SCENE)
263 do.decompress(data=zlib.compress(HAMLET_SCENE))
264 x = co.compress(HAMLET_SCENE) + co.flush()
276 x1 = co.compress(HAMLET_SCENE)
289 bufs.append(co.compress(data[i:i+256]))
305 bufs.append(co.compress(data[i:i+cx]))
350 bufs.append(co.compress(data[i:i+cx]))
375 bufs.append(co.compress(data[i:i+256]))
415 compressed = zlib.compress(data, 1)
421 compressed = zlib.compress(data, 1)
453 a = obj.compress( data[:3000] )
455 c = obj.compress( data[3000:] )
493 first = co.compress(data)
518 cd = co.compress(h) + co.flush()
532 d0 = co.compress(piece) + co.flush(zlib.Z_SYNC_FLUSH)
533 d1 = co.compress(piece[100:]) + co.flush(zlib.Z_SYNC_FLUSH)
534 d2 = co.compress(piece[:-100]) + co.flush(zlib.Z_SYNC_FLUSH)
577 y = zlib.compress(source)
602 comp = co.compress(zdict) + co.flush()
612 data = zlib.compress(input1)
616 data = zlib.compress(input2)
623 data = zlib.compress(input, 1)
630 data = zlib.compress(input, 1)
642 bufs0.append(c0.compress(data0))
647 bufs0.append(c0.compress(data0))
651 bufs1.append(c1.compress(data1))
662 c.compress(HAMLET_SCENE)
670 comp = zlib.compress(data)
693 data = zlib.compress(HAMLET_SCENE)
714 compress = lambda s: c.compress(s) + c.flush() function
715 self.check_big_compress_buffer(size, compress)
730 comp = co.compress(data) + co.flush()
741 comp = zlib.compress(data) + unused
756 comp = zlib.compress(data, 0)
777 zlib15 = co.compress(HAMLET_SCENE) + co.flush()
791 zlib9 = co.compress(HAMLET_SCENE) + co.flush()
801 deflate15 = co.compress(HAMLET_SCENE) + co.flush()
807 deflate9 = co.compress(HAMLET_SCENE) + co.flush()
814 gzip = co.compress(HAMLET_SCENE) + co.flush()