/external/llvm/lib/Support/ |
Compression.cpp | 21 #include <zlib.h> 27 static int encodeZlibCompressionLevel(zlib::CompressionLevel Level) { 29 case zlib::NoCompression: return 0; 30 case zlib::BestSpeedCompression: return 1; 31 case zlib::DefaultCompression: return Z_DEFAULT_COMPRESSION; 32 case zlib::BestSizeCompression: return 9; 34 llvm_unreachable("Invalid zlib::CompressionLevel!"); 37 static zlib::Status encodeZlibReturnValue(int ReturnValue) { 39 case Z_OK: return zlib::StatusOK; 40 case Z_MEM_ERROR: return zlib::StatusOutOfMemory [all...] |
/external/llvm/unittests/Support/ |
CompressionTest.cpp | 26 void TestZlibCompression(StringRef Input, zlib::CompressionLevel Level) { 29 EXPECT_EQ(zlib::StatusOK, zlib::compress(Input, Compressed, Level)); 31 EXPECT_EQ(zlib::StatusOK, 32 zlib::uncompress(Compressed, Uncompressed, Input.size())); 36 EXPECT_EQ(zlib::StatusBufferTooShort, 37 zlib::uncompress(Compressed, Uncompressed, Input.size() - 1)); 41 TEST(CompressionTest, Zlib) { 42 TestZlibCompression("", zlib::DefaultCompression); 44 TestZlibCompression("hello, world!", zlib::NoCompression) [all...] |
/external/python/cpython2/Lib/test/ |
test_zlib.py | 15 zlib = import_module('zlib') variable 18 hasattr(zlib.compressobj(), "copy"), 21 hasattr(zlib.decompressobj(), "copy"), 28 self.assertEqual(zlib.crc32(""), zlib.crc32("", 0)) 29 self.assertTrue(zlib.crc32("abc", 0xffffffff)) 32 self.assertEqual(zlib.crc32("", 0), 0) 33 self.assertEqual(zlib.crc32("", 1), 1) 34 self.assertEqual(zlib.crc32("", 432), 432 [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_zlib.py | 13 zlib = import_module('zlib')
variable 19 self.assertEqual(zlib.crc32(""), zlib.crc32("", 0))
20 self.assertTrue(zlib.crc32("abc", 0xffffffff))
23 self.assertEqual(zlib.crc32("", 0), 0)
24 self.assertEqual(zlib.crc32("", 1), 1)
25 self.assertEqual(zlib.crc32("", 432), 432)
28 self.assertEqual(zlib.adler32(""), zlib.adler32("", 1)) [all...] |
/external/zlib/src/contrib/delphi/ |
zlibd32.mak | 1 # Makefile for zlib 3 # Updated for zlib 1.2.x by Cosmin Truta 19 ZLIB_LIB = zlib.lib 33 adler32.obj: adler32.c zlib.h zconf.h 35 compress.obj: compress.c zlib.h zconf.h 37 crc32.obj: crc32.c zlib.h zconf.h crc32.h 39 deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h 41 gzclose.obj: gzclose.c zlib.h zconf.h gzguts.h 43 gzlib.obj: gzlib.c zlib.h zconf.h gzguts.h 45 gzread.obj: gzread.c zlib.h zconf.h gzguts. [all...] |
/external/zlib/src/contrib/pascal/ |
zlibd32.mak | 1 # Makefile for zlib 3 # Updated for zlib 1.2.x by Cosmin Truta 19 ZLIB_LIB = zlib.lib 33 adler32.obj: adler32.c zlib.h zconf.h 35 compress.obj: compress.c zlib.h zconf.h 37 crc32.obj: crc32.c zlib.h zconf.h crc32.h 39 deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h 41 gzclose.obj: gzclose.c zlib.h zconf.h gzguts.h 43 gzlib.obj: gzlib.c zlib.h zconf.h gzguts.h 45 gzread.obj: gzread.c zlib.h zconf.h gzguts. [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_zlib.py | 13 zlib = import_module('zlib') variable 19 self.assertEqual(zlib.crc32(""), zlib.crc32("", 0)) 20 self.assertTrue(zlib.crc32("abc", 0xffffffff)) 23 self.assertEqual(zlib.crc32("", 0), 0) 24 self.assertEqual(zlib.crc32("", 1), 1) 25 self.assertEqual(zlib.crc32("", 432), 432) 28 self.assertEqual(zlib.adler32(""), zlib.adler32("", 1) [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_zlib.py | 13 zlib = import_module('zlib') variable 19 self.assertEqual(zlib.crc32(""), zlib.crc32("", 0)) 20 self.assertTrue(zlib.crc32("abc", 0xffffffff)) 23 self.assertEqual(zlib.crc32("", 0), 0) 24 self.assertEqual(zlib.crc32("", 1), 1) 25 self.assertEqual(zlib.crc32("", 432), 432) 28 self.assertEqual(zlib.adler32(""), zlib.adler32("", 1) [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_zlib.py | 13 zlib = import_module('zlib') variable 19 self.assertEqual(zlib.crc32(""), zlib.crc32("", 0)) 20 self.assertTrue(zlib.crc32("abc", 0xffffffff)) 23 self.assertEqual(zlib.crc32("", 0), 0) 24 self.assertEqual(zlib.crc32("", 1), 1) 25 self.assertEqual(zlib.crc32("", 432), 432) 28 self.assertEqual(zlib.adler32(""), zlib.adler32("", 1) [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_zlib.py | 13 zlib = import_module('zlib') variable 19 self.assertEqual(zlib.crc32(""), zlib.crc32("", 0)) 20 self.assertTrue(zlib.crc32("abc", 0xffffffff)) 23 self.assertEqual(zlib.crc32("", 0), 0) 24 self.assertEqual(zlib.crc32("", 1), 1) 25 self.assertEqual(zlib.crc32("", 432), 432) 28 self.assertEqual(zlib.adler32(""), zlib.adler32("", 1) [all...] |
/external/sonivox/jet_tools/JetCreator/ |
img_Paste.py | 5 import cStringIO, zlib
9 return zlib.decompress(
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/encodings/ |
zlib_codec.py | 1 """ Python 'zlib_codec' Codec - zlib compression encoding
10 import zlib # this codec needs the optional zlib module !
25 output = zlib.compress(input)
43 output = zlib.decompress(input)
57 self.compressobj = zlib.compressobj()
67 self.compressobj = zlib.compressobj()
73 self.decompressobj = zlib.decompressobj()
83 self.decompressobj = zlib.decompressobj()
95 name='zlib',
[all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/ |
zlib_codec.py | 1 """ Python 'zlib_codec' Codec - zlib compression encoding
10 import zlib # this codec needs the optional zlib module !
25 output = zlib.compress(input)
43 output = zlib.decompress(input)
57 self.compressobj = zlib.compressobj()
67 self.compressobj = zlib.compressobj()
73 self.decompressobj = zlib.decompressobj()
83 self.decompressobj = zlib.decompressobj()
95 name='zlib',
[all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/encodings/ |
zlib_codec.py | 1 """ Python 'zlib_codec' Codec - zlib compression encoding 10 import zlib # this codec needs the optional zlib module ! 25 output = zlib.compress(input) 43 output = zlib.decompress(input) 57 self.compressobj = zlib.compressobj() 67 self.compressobj = zlib.compressobj() 73 self.decompressobj = zlib.decompressobj() 83 self.decompressobj = zlib.decompressobj() 95 name='zlib', [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/encodings/ |
zlib_codec.py | 1 """ Python 'zlib_codec' Codec - zlib compression encoding 10 import zlib # this codec needs the optional zlib module ! 25 output = zlib.compress(input) 43 output = zlib.decompress(input) 57 self.compressobj = zlib.compressobj() 67 self.compressobj = zlib.compressobj() 73 self.decompressobj = zlib.decompressobj() 83 self.decompressobj = zlib.decompressobj() 95 name='zlib', [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/encodings/ |
zlib_codec.py | 1 """ Python 'zlib_codec' Codec - zlib compression encoding 10 import zlib # this codec needs the optional zlib module ! 25 output = zlib.compress(input) 43 output = zlib.decompress(input) 57 self.compressobj = zlib.compressobj() 67 self.compressobj = zlib.compressobj() 73 self.decompressobj = zlib.decompressobj() 83 self.decompressobj = zlib.decompressobj() 95 name='zlib', [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/encodings/ |
zlib_codec.py | 1 """ Python 'zlib_codec' Codec - zlib compression encoding 10 import zlib # this codec needs the optional zlib module ! 25 output = zlib.compress(input) 43 output = zlib.decompress(input) 57 self.compressobj = zlib.compressobj() 67 self.compressobj = zlib.compressobj() 73 self.decompressobj = zlib.decompressobj() 83 self.decompressobj = zlib.decompressobj() 95 name='zlib', [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/zlib/ |
zlibdemo.py | 7 import zlib, sys
21 comptext = zlib.compress(s, 1)
22 decomp = zlib.decompress(comptext)
31 compressor = zlib.compressobj(9)
32 decompressor = zlib.decompressobj()
|
minigzip.py | 2 # Demo program for zlib; it compresses or decompresses files, but *doesn't*
8 import zlib, sys, os
36 crcval = zlib.crc32("")
37 compobj = zlib.compressobj(9, zlib.DEFLATED, -zlib.MAX_WBITS,
38 zlib.DEF_MEM_LEVEL, 0)
43 crcval = zlib.crc32(data, crcval)
78 decompobj = zlib.decompressobj(-zlib.MAX_WBITS) [all...] |
/external/python/cpython2/Demo/zlib/ |
zlibdemo.py | 7 import zlib, sys 21 comptext = zlib.compress(s, 1) 22 decomp = zlib.decompress(comptext) 31 compressor = zlib.compressobj(9) 32 decompressor = zlib.decompressobj()
|
minigzip.py | 2 # Demo program for zlib; it compresses or decompresses files, but *doesn't* 8 import zlib, sys, os 36 crcval = zlib.crc32("") 37 compobj = zlib.compressobj(9, zlib.DEFLATED, -zlib.MAX_WBITS, 38 zlib.DEF_MEM_LEVEL, 0) 43 crcval = zlib.crc32(data, crcval) 78 decompobj = zlib.decompressobj(-zlib.MAX_WBITS [all...] |
/external/libpng/contrib/tools/ |
pngfix.c | 11 * Tool to check and fix the zlib inflate 'too far back' problem. 59 /* zlib.h defines the structure z_stream, an instance of which is included 64 /* We must ensure that zlib uses 'const' in declarations. */ 67 #include <zlib.h> 69 /* zlib.h sometimes #defines const to nothing, undo this. */ 73 /* zlib.h has mediocre z_const use before 1.2.6, this stuff is for compatibility 486 * This is to avoid a function call to the zlib DLL and to optimize the 546 * zlib and the result value is obtained by XORing with CRC_INIT, which is also 560 /* This is an alternative to the algorithm used in zlib, which requires four 909 #define ZLIB_ERROR_CODE 3 /* generic zlib error * 2011 struct zlib struct 2623 struct zlib zlib; local [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/zlib/ |
Makefile | 1 # Makefile for zlib
3 # For conditions of distribution and use, see copyright notice in zlib.h
8 # If you wish to build zlib as a shared library, use: ./configure -s
14 # To install /usr/local/lib/libz.* and /usr/local/include/zlib.h, type:
65 echo ' *** zlib test OK ***'; \
67 echo ' *** zlib test FAILED ***'; \
97 cp zlib.h zconf.h $(includedir)
98 chmod 644 $(includedir)/zlib.h $(includedir)/zconf.h
108 cp zlib.3 $(man3dir)
109 chmod 644 $(man3dir)/zlib.3 [all...] |
/prebuilts/go/darwin-x86/src/compress/zlib/ |
example_test.go | 9 "compress/zlib" 18 w := zlib.NewWriter(&b) 30 r, err := zlib.NewReader(b)
|
/prebuilts/go/linux-x86/src/compress/zlib/ |
example_test.go | 9 "compress/zlib" 18 w := zlib.NewWriter(&b) 30 r, err := zlib.NewReader(b)
|