/external/llvm/lib/Support/ |
D | Compression.cpp | 1 //===--- Compression.cpp - Compression implementation ---------------------===// 8 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===// 21 #include <zlib.h> 27 static int encodeZlibCompressionLevel(zlib::CompressionLevel Level) { in encodeZlibCompressionLevel() argument 28 switch (Level) { in encodeZlibCompressionLevel() 29 case zlib::NoCompression: return 0; in encodeZlibCompressionLevel() 30 case zlib::BestSpeedCompression: return 1; in encodeZlibCompressionLevel() 31 case zlib::DefaultCompression: return Z_DEFAULT_COMPRESSION; in encodeZlibCompressionLevel() 32 case zlib::BestSizeCompression: return 9; in encodeZlibCompressionLevel() [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_zlib.py | 10 zlib = support.import_module('zlib') variable 13 hasattr(zlib.compressobj(), "copy"), 16 hasattr(zlib.decompressobj(), "copy"), 28 self.assertEqual(zlib.ZLIB_RUNTIME_VERSION[0], zlib.ZLIB_VERSION[0]) 34 self.assertEqual(zlib.crc32(b""), zlib.crc32(b"", 0)) 35 self.assertTrue(zlib.crc32(b"abc", 0xffffffff)) 38 self.assertEqual(zlib.crc32(b"", 0), 0) 39 self.assertEqual(zlib.crc32(b"", 1), 1) 40 self.assertEqual(zlib.crc32(b"", 432), 432) 43 self.assertEqual(zlib.adler32(b""), zlib.adler32(b"", 1)) [all …]
|
/external/rust/crates/libz-sys/src/zlib/contrib/ada/ |
D | test.adb | 1 ---------------------------------------------------------------- 2 -- ZLib for Ada thick binding. -- 3 -- -- 4 -- Copyright (C) 2002-2003 Dmitriy Anisimkov -- 5 -- -- 6 -- Open source license information is in the zlib.ads file. -- 7 ---------------------------------------------------------------- 9 -- $Id: test.adb,v 1.17 2003/08/12 12:13:30 vagul Exp $ 11 -- The program has a few aims. 12 -- 1. Test ZLib.Ada95 thick binding functionality. [all …]
|
D | zlib-thin.ads | 1 ---------------------------------------------------------------- 2 -- ZLib for Ada thick binding. -- 3 -- -- 4 -- Copyright (C) 2002-2003 Dmitriy Anisimkov -- 5 -- -- 6 -- Open source license information is in the zlib.ads file. -- 7 ---------------------------------------------------------------- 9 -- $Id: zlib-thin.ads,v 1.11 2004/07/23 06:33:11 vagul Exp $ 15 private package ZLib.Thin is 17 -- From zconf.h [all …]
|
D | read.adb | 1 ---------------------------------------------------------------- 2 -- ZLib for Ada thick binding. -- 3 -- -- 4 -- Copyright (C) 2002-2003 Dmitriy Anisimkov -- 5 -- -- 6 -- Open source license information is in the zlib.ads file. -- 7 ---------------------------------------------------------------- 9 -- $Id: read.adb,v 1.8 2004/05/31 10:53:40 vagul Exp $ 11 -- Test/demo program for the generic read interface. 17 with ZLib; [all …]
|
/external/rust/crates/libz-sys/ |
D | README.md | 1 # libz-sys 3 A common library for linking `libz` to rust programs (also known as zlib). 5 [Documentation](https://docs.rs/libz-sys) 7 # High-level API 9 This crate provides bindings to the raw low-level C API. For a higher-level 10 safe API to work with DEFLATE, zlib, or gzip streams, see 14 # zlib-ng 16 This crate supports building either the high-performance zlib-ng (in 17 zlib-compat mode), or the widely available stock zlib. 19 By default, `libz-sys` uses stock zlib, primarily because doing so allows the [all …]
|
D | Cargo.toml.orig | 2 name = "libz-sys" 7 license = "MIT OR Apache-2.0" 8 repository = "https://github.com/rust-lang/libz-sys" 9 documentation = "https://docs.rs/libz-sys" 11 Low-level bindings to the system libz library (also known as zlib). 13 categories = ["compression", "external-ffi-bindings"] 14 keywords = ["zlib", "zlib-ng"] 20 # When this feature is disabled, zlib will be built in Z_SOLO mode which 22 # eliminating some high-level functions like gz*, compress* and 27 [build-dependencies] [all …]
|
/external/python/cpython3/Doc/library/ |
D | zlib.rst | 1 :mod:`zlib` --- Compression compatible with :program:`gzip` 4 .. module:: zlib 5 :synopsis: Low-level interface to compression and decompression routines 8 -------------- 11 allow compression and decompression, using the zlib library. The zlib library 12 has its own home page at https://www.zlib.net. There are known 13 incompatibilities between the Python module and versions of the zlib library 14 earlier than 1.1.3; 1.1.3 has a `security vulnerability <https://zlib.net/zlib_faq.html#faq33>`_, s… 17 zlib's functions have many options and often need to be used in a particular 19 consult the zlib manual at http://www.zlib.net/manual.html for authoritative [all …]
|
/external/llvm-project/llvm/lib/Support/ |
D | Compression.cpp | 1 //===--- Compression.cpp - Compression implementation ---------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 21 #include <zlib.h> 34 return "zlib error: Z_MEM_ERROR"; in convertZlibCodeToString() 36 return "zlib error: Z_BUF_ERROR"; in convertZlibCodeToString() 38 return "zlib error: Z_STREAM_ERROR"; in convertZlibCodeToString() 40 return "zlib error: Z_DATA_ERROR"; in convertZlibCodeToString() 43 llvm_unreachable("unknown or unexpected zlib status code"); in convertZlibCodeToString() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | Compression.cpp | 1 //===--- Compression.cpp - Compression implementation ---------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 21 #include <zlib.h> 34 return "zlib error: Z_MEM_ERROR"; in convertZlibCodeToString() 36 return "zlib error: Z_BUF_ERROR"; in convertZlibCodeToString() 38 return "zlib error: Z_STREAM_ERROR"; in convertZlibCodeToString() 40 return "zlib error: Z_DATA_ERROR"; in convertZlibCodeToString() 43 llvm_unreachable("unknown or unexpected zlib status code"); in convertZlibCodeToString() [all …]
|
/external/python/cpython2/Doc/library/ |
D | zlib.rst | 2 :mod:`zlib` --- Compression compatible with :program:`gzip` 5 .. module:: zlib 6 :synopsis: Low-level interface to compression and decompression routines compatible with 11 allow compression and decompression, using the zlib library. The zlib library 12 has its own home page at http://www.zlib.net. There are known 13 incompatibilities between the Python module and versions of the zlib library 17 zlib's functions have many options and often need to be used in a particular 19 consult the zlib manual at http://www.zlib.net/manual.html for authoritative 34 Computes an Adler-32 checksum of *data*. (An Adler-32 checksum is almost as 53 The return value is in the range [-2**31, 2**31-1] [all …]
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/deflate/ |
D | DeflateParameters.java | 10 * http://www.apache.org/licenses/LICENSE-2.0 34 * Whether or not the zlib header shall be written (when 36 * @return true if zlib header shall be written 43 * Sets the zlib header presence parameter. 45 * <p>This affects whether or not the zlib header will be written 48 * @param zlibHeader true if zlib header shall be written 55 * The compression level. 57 * @return the compression level 64 * Sets the compression level. 66 * @param compressionLevel the compression level (between 0 and 9) [all …]
|
/external/python/cpython2/Lib/test/ |
D | 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) 37 self.assertEqual(zlib.adler32(""), zlib.adler32("", 1)) 38 self.assertTrue(zlib.adler32("abc", 0xffffffff)) [all …]
|
/external/llvm/unittests/Support/ |
D | CompressionTest.cpp | 1 //===- llvm/unittest/Support/CompressionTest.cpp - Compression tests ------===// 8 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===// 26 void TestZlibCompression(StringRef Input, zlib::CompressionLevel Level) { in TestZlibCompression() argument 29 EXPECT_EQ(zlib::StatusOK, zlib::compress(Input, Compressed, Level)); in TestZlibCompression() 31 EXPECT_EQ(zlib::StatusOK, in TestZlibCompression() 32 zlib::uncompress(Compressed, Uncompressed, Input.size())); in TestZlibCompression() 36 EXPECT_EQ(zlib::StatusBufferTooShort, in TestZlibCompression() 37 zlib::uncompress(Compressed, Uncompressed, Input.size() - 1)); in TestZlibCompression() 41 TEST(CompressionTest, Zlib) { in TEST() argument [all …]
|
/external/llvm-project/lld/test/ELF/ |
D | compressed-debug-level.test | 1 # REQUIRES: x86, zlib 3 # RUN: yaml2obj %s -o %t.o 5 # RUN: ld.lld %t.o -o %t.default --compress-debug-sections=zlib 6 # RUN: llvm-readelf --sections %t.default | FileCheck -check-prefixes=HEADER,LEVEL1 %s 8 # RUN: ld.lld -O0 %t.o -o %t.O0 --compress-debug-sections=zlib 9 # RUN: llvm-readelf --sections %t.O0 | FileCheck -check-prefixes=HEADER,LEVEL1 %s 12 # RUN: ld.lld -O1 %t.o -o %t.O1 --compress-debug-sections=zlib 13 # RUN: llvm-readelf --sections %t.O1 | FileCheck -check-prefixes=HEADER,LEVEL1 %s 16 # RUN: ld.lld -O2 %t.o -o %t.O2 --compress-debug-sections=zlib 17 # RUN: llvm-readelf --sections %t.O2 | FileCheck -check-prefixes=HEADER,LEVEL6 %s [all …]
|
/external/rust/crates/libz-sys/src/zlib/contrib/iostream2/ |
D | zstream.h | 23 * zstream.h - C++ interface to the 'zlib' general purpose compression library 24 * $Id: zstream.h 1.1 1997-06-25 12:00:56+02 tyge Exp tyge $ 30 #include "zlib.h" 49 // ----------------------------- izstream ----------------------------- 63 * cases (if errno is zero, the zlib error is Z_MEM_ERROR). 78 * the zlib error number (see function error() below). 92 * given compressed file. errnum is set to zlib error number. If an 112 * (0 for end of file, -1 for error). 153 // ----------------------------- ozstream ----------------------------- 160 ozstream(FILE* fp, int level = Z_DEFAULT_COMPRESSION) [all …]
|
/external/python/cpython2/Demo/zlib/ |
D | zlibdemo.py | 4 # Reads the file and compresses the content using level 1 and level 9 7 import zlib, sys 21 comptext = zlib.compress(s, 1) 22 decomp = zlib.decompress(comptext) 24 print '1-step compression: (level 1)' 31 compressor = zlib.compressobj(9) 32 decompressor = zlib.decompressobj() 43 print 'Progressive compression (level 9):'
|
/external/llvm-project/llvm/unittests/Support/ |
D | CompressionTest.cpp | 1 //===- llvm/unittest/Support/CompressionTest.cpp - Compression tests ------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 26 void TestZlibCompression(StringRef Input, int Level) { in TestZlibCompression() argument 30 Error E = zlib::compress(Input, Compressed, Level); in TestZlibCompression() 35 E = zlib::uncompress(Compressed, Uncompressed, Input.size()); in TestZlibCompression() 42 E = zlib::uncompress(Compressed, Uncompressed, Input.size() - 1); in TestZlibCompression() 43 EXPECT_EQ("zlib error: Z_BUF_ERROR", llvm::toString(std::move(E))); in TestZlibCompression() 47 TEST(CompressionTest, Zlib) { in TEST() argument [all …]
|
/external/libpng/projects/vstudio/ |
D | zlib.props | 1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 * zlib.props - location of zlib source 6 * Copyright (c) 1998-2011 Glenn Randers-Pehrson 13 * of the zlib source code. 14 --> 19 <!-- Place the name of the directory containing the source of zlib used for 26 relative to the project directories; these are one level deeper than 29 If the version of zlib you use does not match that used when the 30 distribution was built you will get warnings from pngtest that the zlib [all …]
|
/external/rust/crates/flate2/src/ |
D | lib.rs | 1 //! A DEFLATE-based stream compression/decompression library 4 //! DEFLATE-based streams: 7 //! * the zlib format 19 //! * `default`, or `rust_backend` - this implementation uses the `miniz_oxide` 23 //! * `miniz-sys` - when enabled this feature will enable this crate to instead 24 //! use `miniz.c`, distributed with `miniz-sys`, to implement 27 //! * `zlib` - finally, this feature will enable linking against the `libz` 34 //! selected to avoid the need for a C compiler at build time. The `miniz-sys` 36 //! needed, and `zlib` is often useful if you're already using `zlib` for other 59 //! # fn run() -> io::Result<()> { [all …]
|
/external/OpenCL-CTS/test_common/miniz/ |
D | miniz.h | 31 // Set MINIZ_HAS_64BIT_REGISTERS to 1 if operations on 64-bit integers are reasonably fast (and don… 35 // Return status codes. MZ_PARAM_ERROR is non-standard. 40 MZ_ERRNO = -1, 41 MZ_STREAM_ERROR = -2, 42 MZ_DATA_ERROR = -3, 43 MZ_MEM_ERROR = -4, 44 MZ_BUF_ERROR = -5, 45 MZ_VERSION_ERROR = -6, 46 MZ_PARAM_ERROR = -10000 55 // ------------------- zlib-style API Definitions. [all …]
|
/external/rust/crates/libz-sys/src/zlib-ng/ |
D | zlib-ng.h | 3 /* zlib-ng.h -- interface of the 'zlib-ng' compression library, forked from zlib. 5 Copyright (C) 1995-2016 Jean-loup Gailly and Mark Adler 7 This software is provided 'as-is', without any express or implied 23 Jean-loup Gailly Mark Adler 27 The data format used by the zlib library is described by RFCs (Request for 29 (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format). 33 #include "zconf-ng.h" 47 The 'zlib' compression library provides in-memory compression and 58 The compressed data format used by default by the in-memory functions is 59 the zlib format, which is a zlib wrapper documented in RFC 1950, wrapped [all …]
|
/external/libpng/ |
D | README | 1 README for libpng version 1.6.37 - April 14, 2019 7 Libpng comes in several distribution formats. Get libpng-*.tar.gz or 8 libpng-*.tar.xz or if you want UNIX-style line endings in the text 9 files, or lpng*.7z or lpng*.zip if you want DOS-style line endings. 13 in extensive use and testing since mid-1995. By late 1997 it had 21 version of the library binary incompatible with libpng-0.89 or 24 png_uint_32, which will affect shared-library applications that use 36 library, through libpng-1.2.x. In libpng-1.4.x, which was meant to 39 warning about deprecated usage. Since libpng-1.5.0, direct access 52 on big-endian processors that support misaligned data access, faster [all …]
|
/external/python/cpython2/Modules/zlib/ |
D | zlib.h | 1 /* zlib.h -- interface of the 'zlib' general purpose compression library 4 Copyright (C) 1995-2017 Jean-loup Gailly and Mark Adler 6 This software is provided 'as-is', without any express or implied 22 Jean-loup Gailly Mark Adler 26 The data format used by the zlib library is described by RFCs (Request for 28 (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format). 48 The 'zlib' compression library provides in-memory compression and 59 The compressed data format used by default by the in-memory functions is 60 the zlib format, which is a zlib wrapper documented in RFC 1950, wrapped 65 with "gz". The gzip format is different from the zlib format. gzip is a [all …]
|
/external/rust/crates/libz-sys/src/zlib/ |
D | zlib.h | 1 /* zlib.h -- interface of the 'zlib' general purpose compression library 4 Copyright (C) 1995-2017 Jean-loup Gailly and Mark Adler 6 This software is provided 'as-is', without any express or implied 22 Jean-loup Gailly Mark Adler 26 The data format used by the zlib library is described by RFCs (Request for 28 (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format). 48 The 'zlib' compression library provides in-memory compression and 59 The compressed data format used by default by the in-memory functions is 60 the zlib format, which is a zlib wrapper documented in RFC 1950, wrapped 65 with "gz". The gzip format is different from the zlib format. gzip is a [all …]
|