File indexing completed on 2024-04-28 15:54:00
0001 # AUTO-GENERATED FILE -- DO NOT EDIT 0002 0003 """ The functions in this module allow compression and decompression using the 0004 zlib library, which is based on GNU zip. 0005 0006 adler32(string[, start]) -- Compute an Adler-32 checksum. 0007 compress(string[, level]) -- Compress string, with compression level in 1-9. 0008 compressobj([level]) -- Return a compressor object. 0009 crc32(string[, start]) -- Compute a CRC-32 checksum. 0010 decompress(string,[wbits],[bufsize]) -- Decompresses a compressed string. 0011 decompressobj([wbits]) -- Return a decompressor object. 0012 0013 'wbits' is window buffer size. 0014 Compressor objects support compress() and flush() methods; decompressor 0015 objects support decompress() and flush(). """ 0016 0017 DEFLATED = 8 0018 DEF_MEM_LEVEL = 8 0019 MAX_WBITS = 15 0020 ZLIB_VERSION = '1.2.5' 0021 Z_BEST_COMPRESSION = 9 0022 Z_BEST_SPEED = 1 0023 Z_DEFAULT_COMPRESSION = -1 0024 Z_DEFAULT_STRATEGY = 0 0025 Z_FILTERED = 1 0026 Z_FINISH = 4 0027 Z_FULL_FLUSH = 3 0028 Z_HUFFMAN_ONLY = 2 0029 Z_NO_FLUSH = 0 0030 Z_SYNC_FLUSH = 2 0031 __package__ = None 0032 __version__ = '1.0' 0033 0034 def adler32(string, start=None): 0035 """ adler32(string[, start]) -- Compute an Adler-32 checksum of string. 0036 0037 An optional starting value can be specified. The returned checksum is 0038 a signed integer. """ 0039 return "" 0040 0041 def compress(string, level=None): 0042 """ compress(string[, level]) -- Returned compressed string. 0043 0044 Optional arg level is the compression level, in 1-9. """ 0045 return "" 0046 0047 def compressobj(level=None): 0048 """ compressobj([level]) -- Return a compressor object. 0049 0050 Optional arg level is the compression level, in 1-9. """ 0051 return None 0052 0053 def crc32(string, start=None): 0054 """ crc32(string[, start]) -- Compute a CRC-32 checksum of string. 0055 0056 An optional starting value can be specified. The returned checksum is 0057 a signed integer. """ 0058 return "" 0059 0060 def decompress(string, wbits=None, bufsize=None): 0061 """ decompress(string[, wbits[, bufsize]]) -- Return decompressed string. 0062 0063 Optional arg wbits is the window buffer size. Optional arg bufsize is 0064 the initial output buffer size. """ 0065 return "" 0066 0067 def decompressobj(wbits=None): 0068 """ decompressobj([wbits]) -- Return a decompressor object. 0069 0070 Optional arg wbits is the window buffer size. """ 0071 return None 0072 0073 class error(Exception): 0074 0075 pass 0076