| /external/python/cpython3/Lib/test/ |
| D | test_zlib.py | 12 zlib = import_helper.import_module('zlib') variable 15 hasattr(zlib.compressobj(), "copy"), 18 hasattr(zlib.decompressobj(), "copy"), 30 self.assertEqual(zlib.ZLIB_RUNTIME_VERSION[0], zlib.ZLIB_VERSION[0]) 36 self.assertEqual(zlib.crc32(b""), zlib.crc32(b"", 0)) 37 self.assertTrue(zlib.crc32(b"abc", 0xffffffff)) 40 self.assertEqual(zlib.crc32(b"", 0), 0) 41 self.assertEqual(zlib.crc32(b"", 1), 1) 42 self.assertEqual(zlib.crc32(b"", 432), 432) 45 self.assertEqual(zlib.adler32(b""), zlib.adler32(b"", 1)) [all …]
|
| /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/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 This also serves as the source for the `libz-ng-sys` crate, which builds 8 zlib-ng natively (not in zlib-compat mode). See 9 [`README-zng.md`](README-zng.md) for details. 11 # High-level API 13 This crate provides bindings to the raw low-level C API. For a higher-level 14 safe API to work with DEFLATE, zlib, or gzip streams, see 18 # zlib-ng [all …]
|
| D | Cargo.toml.orig | 2 name = "libz-sys" 6 license = "MIT OR Apache-2.0" 7 repository = "https://github.com/rust-lang/libz-sys" 8 description = "Low-level bindings to the system libz library (also known as zlib)." 9 categories = ["compression", "external-ffi-bindings"] 10 keywords = ["zlib", "zlib-ng"] 16 "/Cargo-zng.toml", 17 "/cargo-zng", 26 # When this feature is disabled, zlib will be built in Z_SOLO mode which 28 # eliminating some high-level functions like gz*, compress* and [all …]
|
| D | README-zng.md | 1 # libz-ng-sys 3 A library for linking zlib-ng (`libz-ng`) to Rust programs natively, rather 4 than in zlib-compat mode. 6 zlib-ng is a high-performance implementation of zlib. zlib-ng supports building 7 in two modes: zlib-compat mode, in whih it provides the same API as zlib and 8 generally works as a drop-in replacement, and native mode, in which it provides 9 its own API. The native API is almost identical to the zlib-compat API, except 10 that some types use more correct sizes (rather than the sizes required for zlib 12 zlib and zlib-ng to coexist in the same program. 14 This crate provides bindings to the native zlib-ng API. However, for simplicity [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/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/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 //! * `zlib` - this feature will enable linking against the `libz` library, typically found on most 29 //! compiler at build time. `zlib-ng-compat` is useful if you're using zlib for compatibility but 30 //! want performance via zlib-ng's zlib-compat mode. `zlib` is useful if something else in your 31 //! dependencies links the original zlib so you cannot use zlib-ng-compat. The compression ratios 53 //! # fn run() -> io::Result<()> { 61 //! Other various types are provided at the top-level of the crate for [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/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/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/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/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/rust/crates/libz-sys/src/zlib-ng/ |
| D | zlib-ng.h.in | 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 # error Include zlib-ng.h for zlib-ng API or zlib.h for zlib-compat API but not both 37 #include "zconf-ng.h" 42 # error Missing zconf-ng.h add binary output directory to include directories 55 #define ZLIBNG_VER_STATUS 0 /* 0=devel, 1-E=beta, F=Release */ [all …]
|
| D | zlib.h.in | 3 /* zlib.h -- interface of the 'zlib-ng' compression library 4 Forked from and compatible with zlib 1.2.11 6 Copyright (C) 1995-2016 Jean-loup Gailly and Mark Adler 8 This software is provided 'as-is', without any express or implied 24 Jean-loup Gailly Mark Adler 28 The data format used by the zlib library is described by RFCs (Request for 30 (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format). 34 # error Include zlib-ng.h for zlib-ng API or zlib.h for zlib-compat API but not both 57 #define ZLIBNG_VER_STATUS 0 /* 0=devel, 1-E=beta, F=Release */ 58 #define ZLIBNG_VER_MODIFIED 0 /* non-zero if modified externally from zlib-ng */ [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/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/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 …]
|
| /external/zlib/ |
| D | zlib.h | 1 /* zlib.h -- interface of the 'zlib' general purpose compression library 4 Copyright (C) 1995-2022 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 * In Android's NDK we have one zlib.h for all the versions. 49 * zlib users tend to use ZLIB_VERNUM to check API availability, 55 * jb-mr2-dev (18): 1.2.7 (but not 1.2.7.1, where the APIs were added!) 56 * https://android.googlesource.com/platform/external/zlib/+/refs/heads/jb-mr2-dev/src/zlib.h [all …]
|
| /external/tflite-support/third_party/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 * In Android's NDK we have one zlib.h for all the versions. 49 * zlib users tend to use ZLIB_VERNUM to check API availability, 55 * jb-mr2-dev (18): 1.2.7 (but not 1.2.7.1, where the APIs were added!) 56 * https://android.googlesource.com/platform/external/zlib/+/refs/heads/jb-mr2-dev/src/zlib.h [all …]
|