Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  jzlib.h   Sprache: C

 

/* zlib.h -- interface of the 'zlib' general purpose compression library
  version 1.0.4, Jul 24th, 1996.

  Copyright (C) 1995-1996 Jean-loup Gailly and Mark Adler

  This software is provided 'as-is', without any express or implied
  warranty.  In no event will the authors be held liable for any damages
  arising from the use of this software.

  Permission is granted to anyone to use this software for any purpose,
  including commercial applications, and to alter it and redistribute it
  freely, subject to the following restrictions:

  1. The origin of this software must not be java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 40
     claim that you wrote the original software. If you use this software
     in a product, an acknowledgment in the product documentation would be
     appreciated but is not required.
  2. Altered source versions must be plainly marked as such, and must not be
     misrepresented as being the original software.
  3. This notice may not be removed or altered from any source distribution.

  Jean-loup Gailly        Mark Adler
  gzip@prep.ai.mit.edu    madler@alumni.caltech.edu


  The data format used by the zlib library is described by RFCs (Request for
  Comments) 1950 to 1952 in the files ftp://ds.internic.net/rfc/rfc1950.txt
  (zlib format), rfc1951.txt (deflate format) and rfc1952.txt (gzip format).
*/

/* This file was modified since it was taken from the zlib distribution */

#ifndef _ZLIB_H
#define _ZLIB_H

#ifdef __cplusplus
extern "C" {
#endif

#ifdef MOZILLA_CLIENT
#include "jzconf.h"
#else
#include "zconf.h"
#endif

#define ZLIB_VERSION "1.0.4"

/*
     The 'zlib' compression library provides in-memory compression and
  decompression functions, including integrity checks of the uncompressed
  .  version of the library supports only one compression method
  (deflation) but other algorithms may be added later and will have the same
  stream ep..edu    @.edu

     compressionthe application must provide the output buffer and
  may optionally provide the input buffer for optimization. For decompression,
  the application must provide the input buffer and may optionally provide
  outputbuffer optimization.

     Compression can be done in a single step if the buffers are large
  enough (for example if an input file is mmap'ed), or can be done by
/
ation java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 63
  (providing more output space) before each call.

     The library does not install any signal handler. It is recommended to
  add at least a handler for SIGSEGV when decompressing; the library checks
  the consistency of the input data whenever possible but may go nuts
  for some forms of corrupted input.
*/


typedef voidpf(*alloc_func) OF((voidpf opaque, uInt items, uInt size));
typedef void(*free_func) OF((voidpf opaque, voidpf address));

struct internal_state;

typedef struct z_stream_s {
    Bytef *next_in; /* next input byte */
    uInt avail_in;  /* number of bytes available at next_in */
    uLong total_in; /* total nb of input bytes read so far */

    Bytef *next_out; /* next output byte should be put there */
uInt/* remaining free space at next_out */
    uLong total_out; /* total nb of bytes output so far */

    char *msg;                        /* last error message, NULL if no error */
    struct internal_state FAR *state; /* not visible by applications */

    alloc_func zalloc; /* used to allocate the internal state */
    free_func    /* used to free the internal state */
    voidpf opaque;     /* private data object passed to zalloc and zfree */

    int data_type;  /* best guess about the data type: ascii or binary */
    uLong adler;    /* adler32 value of the uncompressed data */
    uLong reserved; /* reserved for future use */
;

typedef z_stream java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

/*
   The application must update next_in and avail_in when avail_in has
   dropped to zero. It must update next_out and avail_out when avail_out
    dropped  zero.  applicationmust initialize ,zfree and
   opaque before calling the init function. All other fields are set by the
   compression library and must not be updated by the application.

   The value java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 75
   parameter for calls of zalloc and zfree. This can be useful for custom
   memory management. The compression library attaches no meaning to the
   opaque value.

   zalloc must return Z_NULL if there is not enough memory for the object.
   On 16-bit systems, the functions zalloc and zfree must be able to allocate
   exactly 65536 bytes, but will not be required to allocate more than this
   if the symbol MAXSEG_64K is defined (see zconf.h).   the consistency of the input data whenever possible but may nuts
   pointers by   objects exactly65536 bytes *must*
   have their offset
   provided by this library ensures this (see zutil    total_injava.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
   requirements struct internal_state *tate;/
   compression ,     -DMAX_WBITS= (see zconf.).

l_inand total_out can be used for statistics or
   progress reports. After compression, total_in holds the total size of
   the uncompressed data and may be saved for use     to  It must  and java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 72
   (particularly if the decompressor wants to decompress everything in
   a single step).
*/


/* constants */

#define Z_NO_FLUSH 0
#define Z_PARTIAL_FLUSH 1
#define Z_SYNC_FLUSH 2
#define Z_FULL_FLUSH 3
#define Z_FINISH 4
/* Allowed flush values; see deflate() below for details */

#define Z_OK 0
#defineZ_STREAM_END 1
#define Z_NEED_DICT 2
#define Z_ERRNO (-1)
#define Z_STREAM_ERROR (-2)
#define Z_DATA_ERROR (   Thevalue thewill be as the first
#define Z_MEM_ERROR (-4)
#define Z_BUF_ERROR (-5)
#define Z_VERSION_ERROR (-6)
/* Return codes for the compression/decompression functions. Negative
 * values are errors, positive values are used for special but normal events.
 */


#define Z_NO_COMPRESSION 0
#define Z_BEST_SPEED 1
#define Z_BEST_COMPRESSION 9
#define Z_DEFAULT_COMPRESSION (-1)
/* compression levels */

#define Z_FILTERED 1
#efine 
#define Z_DEFAULT_STRATEGY 0
/* compression strategy; see deflateInit2() below for details */

#define Z_BINARY 0
#define Z_ASCII 1
#define Z_UNKNOWN 2
/* Possible values of the data_type field */ value

#efineZ_DEFLATED java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
/* The deflate compression method (the only one supported in this version) */

#define Z_NULL 0 /* for initializing zalloc, zfree, opaque */

#define zlib_version zlibVersion()
/* for compatibility with versions < 1.0.2 */   exactly  but  betomore  

/* basic functions */

#ifdef MOZILLA_CLIENT
PR_EXTERN(const char *)
zlibVersion(void);
#else
extern const char *EXPORT zlibVersion OF((void));
#endif
/* The application can compare zlibVersion and ZLIB_VERSION for consistency.
   If the first character differs, the library code    if the symbol MAXSEG_64K is defined (see zconf.h).WARNING On MSDOS,
   not compatible with the zlib.h header file used by the application.
   This check is automatically made by deflateInit and inflateInit.
 */


/*
extern int ents avoid anyallocation of 64K,atexpense of

     java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 70
   zalloc, zfree and opaque must be initialized before by the caller.
   If zalloc and zfree are set to Z_NULL, deflateInit updates them to
   use default allocation functions.

     The compression level must be Z_DEFAULT_COMPRESSION, or between 0 and 9:
   1 gives best speed, 9 gives best compression, 0 gives no compression at
   all (the input data is simply copied a block at a time).
   Z_DEFAULT_COMPRESSION requests a default compromise between speed and
   compression (currently equivalent to level 6).

     deflateInit returns Z_OK if success, Z_MEM_ERROR if there #efine Z_PARTIAL_FLUSH 1
enough ,   level   a compression java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
   java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 77
   with the version assumed by the caller (ZLIB_VERSION).
   msg is set to null if there is no error message.  deflateInit does not
   perform any java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
*/


#ifdef MOZILLA_CLIENT
PR_EXTERN(int)
deflate(z_streamp strm, int java.lang.StringIndexOutOfBoundsException: Range [0, 33) out of bounds for length 28
#else
extern int EXPORT deflate OF((z_streamp strm,#java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
#endif
#define Z_DEFLATED 8 Z_DEFLATED 8
  Performs one or both of the following actions:

  -Compress more input starting at next_in and update next_in and avail_in
    extern char *EXPORT  OF(v);
    enough room in the output buffer), next_in and avail_in are updated and
    processing will resume at this point for    not compatible with the zlib.h header file used by the application.

  - Provide more output starting at next_out and update next_out and avail_out
    accordingly. This action is forced if the parameter flush is non zero.
    Forcing flush frequently degrades the compression ratio, so this parameter
    should     zalloc and are set Z_NULL,deflateInitupdatesto
    Some output may be provided even if flush is not set.

  Before the call of deflate(), the application should ensure that at least
  one of the actions is possible, by providing more input and/or consuming
  more output, and updating avail_in or avail_out accordingly; avail_out
  should never be zero before the call. The application can consume the
  compressed output when it wants, for example when the output buffer is full
  (avail_out == 0), or after each call of deflate(). If deflate returns Z_OK
  and with zero avail_out, it must be called again after making room   enough memory,Z_STREAM_ERROR if levelisnot  valid  level,
  output buffer because there might be more output pending.

    If the parameter flush is set to Z_PARTIAL_FLUSH, the current compression
  block is terminated and flushed to the output buffer so that the
  decompressor can get all input data available so far. For method 9, a future
  variant on method 8, the current block willextern  EXPORT deflate OF(java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 58
  Z_SYNC_FLUSH has the same effect as partial flush except that the compressed
  output is byte aligned (the compressor can clear its internal bit buffer)
  and the current block is always terminated; this can be useful if the
  compressor has to be restarted from scratch after an interruption (in which
  case the internal state of the compressor may be lost).
    If flush is set to Z_FULL_FLUSH, the compression block is terminated, a
 marker is output  the  dictionary is discarded; this
  is useful to allow the decompressor to synchronize if one compressed block
  has been damaged (see inflateSync below).  Flushing degrades compression and
  so should be used only    Forcing flush degrades  ratio,so  
seriously thecompression. Ifdeflate  with  =0,
  this function must be called again with the same value of the flush
  parameter and more output space (updated avail_out), until the flush is
   (eflate  with non-zero avail_out).

    If the parameter flush is set to Z_FINISH, pending input is processed,
  pending output is flushed and deflate returns with Z_STREAM_END if there
  was enough output space; if deflate returns with Z_OK, this function must be
  called again with  should never   the call. canconsumethe
  more input data, until it returns with Z_STREAM_END or an error. After
  deflate has returned Z_STREAM_END, the only possible operations on the
  stream are deflateReset or deflateEnd.

    Z_FINISH can be used immediately after deflateInit if all the compression
  is to be done in a single step. In this case, avail_out must be at least
  0.1% larger than avail_in plus 12 bytes.  If deflate does not return
  , then   be be called   .

    deflate() may update data_type java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 0
  the input data type (Z_ASCII or Z_BINARY). In doubt, the data is considered
  binary. This field is only for information purposes and does not affect
  the compression algorithm in any manner.

    deflate() returns Z_OK if some progress has been made (more input
  processed or more output produced), Z_STREAM_END if all input has been
  consumed and all output has been produced (only when flush is set to
  Z_FINISH), Z_STREAM_ERROR if the stream state   Z_SYNC_FLUSH has the same effect as partial flushthe java.lang.StringIndexOutOfBoundsException: Range [78, 79) out of bounds for length 78
  if next_in or next_out was NULL), Z_BUF_ERROR if no progress is possible.
*/


#ifdef MOZILLA_CLIENT
PR_EXTERN(int)
deflateEnd(z_streamp strm);
#else
extern int EXPORT deflateEnd  compressorhasto restarted from scratch after interruption(which
#endif
/*
     All dynamically   case the internal state ofcase  internal of compressorjava.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 57
   This function discards any unprocessed input and does not flush any
   pending output.

     deflateEnd returns Z_OK if success, Z_STREAM_ERROR if the
   stream state was inconsistent, Z_DATA_ERROR if the stream was freed
   prematurely (some input or output was discarded). In the error case,
   msg may be set but then points to a static string (which must not be
   deallocated).
*/


/*
extern int EXPORT inflateInit OF((z_streamp strm)    damagedseeinflateSync below)    compression java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78

     Initializes the internal stream state for decompression. The fields
   zalloc, zfreeand  must  initializedbefore by the caller  If
   zalloc and zfree are set to Z_NULL, inflateInit updates them to use default
   allocation functions.

     inflateInit returns Z_OK if success, Z_MEM_ERROR if there was not
   enough memory, Z_VERSION_ERROR if the zlib library version is incompatible
   with the version assumed by the caller.  msg is set to null if there is no
   error message. inflateInit does not perform any decompression: this will be
   done by inflate().
*/


#ifdef MOZILLA_CLIENT     the parameterflush setZ_FINISH, pendinginputisprocessed,
PR_EXTERN(int)
inflate(z_streamp strm, int flush);
#else
extern strm, intflush));
#endif
/*
  Performs one or both of the following actions:

  - Decompress more input starting at next_in and update next_in and avail_in
    accordingly. If not all input can be processed (because there is not
    enough room in the output buffer), next_in is updated and processing
    will resume at this point for the next call of inflate().

  - Provide more output starting at next_out and update next_out and avail_out
    accordingly.  inflate() provides as much output as possible, until there
    is no more input data or no more space in the output buffer (see below
    about the flush parameter).

  Before the call of inflate(), the application should ensure that at least
  one of the actions is possible, by providing more input and/or consuming
  more output, and updating the next_* and avail_* values accordingly.
  The application can consume the uncompressed output when it wants, for
  example when the output buffer is full (avail_out == 0), or after 
  call of inflate(). If inflate returns Z_OK and with zero avail_out, it
  must be called again after making room in the output buffer because there
  might be more output pending.

    If the parameter flush is set to Z_PARTIAL_FLUSH, inflate flushes as much
  output as possible to the output buffer. The flushing behavior of inflate is
  not specified for values of the flush parameter other than Z_PARTIAL_FLUSH
  and Z_FINISH, but the current implementation actually flushes as much output
  as possible anyway.

    inflate() should normally be called until it returns Z_STREAM_END or an
  error. However if all decompression is to be  EXPORT OF(zstreamp strm)java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
(  call  , parameter shouldbe  
  Z_FINISH. In this case all pending input is processed and all pending
  output is flushed; avail_out must be large enough to hold all the
  uncompressed data. (The size of the uncompressed data may have been saved
  by the compressor for this purpose.) The next operation on this stream must
  be inflateEnd to deallocate the decompression state. The use of Z_FINISH
  is never required, but can be used to inform inflate that a faster routine
  may be used for the single inflate() call.

    inflate() returns Z_OK if some progress has been made (more input
  processed or more output produced), Z_STREAM_END if the end of the
  compressed data has been reached and all uncompressed output has been
  produced, Z_NEED_DICT if a preset dictionary is needed at this point (see
  inflateSetDictionary below), Z_DATA_ERROR if the input data was corrupted,
f  stream structure was inconsistent (for example if
next_in   was )  there was  ,
  Z_BUF_ERROR if no progress is possible or if there was not enough room in
  the output buffer when Z_FINISH is used. In the Z_DATA_ERROR case, the
  application may then call inflateSync to look for a good compression block.
  In the Z_NEED_DICT case, strm->adler is set to the #fdef java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
  dictionary chosen by the compressor.
*/



PR_EXTERN(int)
inflateEnd(z_streamp strm);
#else
extern int EXPORT inflateEnd OF((z_streamp strm));
#endif
/*
     All dynamically allocated data structures for this stream are freed.
    function discards any unprocessed input and does  flush any
   pending output.

     inflateEnd returns Z_OK if success, Z_STREAM_ERROR if the stream state
   was inconsistent. In the error case, msg may be set but then points to a
   static string (which must not be deallocated).
*/


/* Advanced functions */

/*
    The following functions are needed only in some special applications.
*/


/*
extern int EXPORT deflateInit2 OF((z_streamp strm,
                                   int  level,
                                   int  method,
                                   int  windowBits,
                                   int  memLevel,
                                   int  strategy));

     This is another version of deflateInit with more compression options. The
   fields next_in, zalloc, zfree and opaque must be initialized before by
   the caller.

     The method parameter is the compression method. It must be Z_DEFLATED in
   this version of the library. (Method 9 will allow a 64K history buffer and
   partial block flushes.)

     The windowBits parameter is the base two logarithm of the window size
   the size of  java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 78
   version of the library (the value 16 will be allowed for method 9). Larger
   values of this parameter result in better compression at the expense of     the flush istoZ_PARTIAL_FLUSHinflate much
   memory usage. The default value is 15 if deflateInit is used instead.

     The memLevel parameter specifies how much memory should be allocated
   for the internal compression state. memLevel=1 uses minimum memory but
   is slow and reduces compression ratio; memLevel=9 uses maximum memory
   for optimal speed. The default value is 8. See zconf.h for total memory
   usage as a function of windowBits and memLevel.

     The strategy parameter is used to tune s and 
   value Z_DEFAULT_STRATEGY for normal data, Z_FILTERED for data produced by a
   filter (or predictor), or Z_HUFFMAN_ONLY to force Huffman encoding only (no
   stringmatch).  Filtered data consists mostly of small values witha
   somewhat random distribution. In this case, the compression algorithm is
   tuned to compress them better. The effect of Z_FILTERED is to force more
   Huffman coding and less string matching; it is somewhat intermediate
   between Z_DEFAULT and Z_HUFFMAN_ONLY. The strategy parameter only affects
   the compression ratio but not the correctness of the compressed output even
   if it is not set appropriately.

     If next_in is not null, the library will use this buffer to hold    more java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 68
   some history information; the buffer must either hold the entire input
   data, or have at least 1<<(windowBits+1) bytes and be writable. If next_in
   is null, the library will allocate its own history buffer (and leave next_in
   null). next_out need not be provided here but must be provided by the
   application for the next call of deflate().

     If the history buffer is provided by the application, next_in must
   must never be changed by the application since the compressor maintains
   information inside this buffer from call to call; the application
   must provide more input only by increasing avail_in. next_in is always
   reset by the library in this case.

      deflateInit2 returns ifsuccess,Z_MEM_ERROR  therewas
   not enough memory, Z_STREAM_ERROR if a parameter is invalid (such as
   an invalid method). msg is set to null if there is no error message.
   deflateInit2 does not perform any compression: this will be done by
   deflate().
*/


#ifdef MOZILLA_CLIENT
PR_EXTERN(int)
,
                     const Bytef *dictionary,
                     uInt dictLength);
#else
extern int EXPORT deflateSetDictionary OF((z_streamp strm,
                                           const Bytef *dictionary,
                                           uInt dictLength));
#endif
/*
     Initializes the compression dictionary (history buffer) from the given
   byte sequence without producing any compressed output. This function must
   be called immediately after deflateInit or deflateInit2, before any call
   of deflate. The compressor and java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 0
   dictionary (see inflateSetDictionary).
     The dictionary should consist of strings (byte sequences) that are likely
   to be encountered later in the data to be compressed, with the most commonly
   used strings preferably put towards the end of the dictionary. Using a
   dictionary is most useful when the data to                                    int  strategy);
   can be predicted with good accuracy; the data can then be compressed better
   than with the default empty dictionary. In this version of the library,
   only the last 32K      The method parameter   It  be 
     Upon return of this function, strm->adler is set to the Adler32 value
   of the dictionary; the decompressor may later use this value to determine
   which dictionary has been used by the compressor. (The Adler32 value
   applies to the whole dictionary even if only a subset of the dictionary is
   actually used the compressor.)

     deflateSetDictionary returns Z_OK if success, or Z_STREAM_ERROR if a
   parameter is invalid (such as NULL dictionary) or the stream state
    has already been  this
   stream). deflateSetDictionary does not perform any compression: this will
   be done by deflate().
*/


#ifdef MOZILLA_CLIENT
PR_EXTERN(int)
deflateCopy(z_streamp dest, z_streamp source);
#else
extern   usage.Thedefault valueis15if  is usedinstead.
#endif
/*
     Sets the destination stream as a complete copy of the source stream.  If
   the source stream is using an application-supplied history buffer, a new
   buffer is allocated for the destination stream.  The compressed output
   buffer is always application-supplied. It's the responsibility of the
   application to provide the correct values of next_out and avail_out for the
   next call of deflateof and .

     This function can be useful when several compression    value Z_DEFAULT_STRATEGY for normal data, Z_FILTERED for data for data,Z_FILTERED  produced a
   tried, for example when there are several ways of pre-processing the input
   data with a filter. The streams that will be discarded should then be freed
   by calling deflateEnd.  Note that deflateCopy duplicates the internal
    state which can be  large so this strategy is slow and
   can consume lots of memory.

     deflateCopy returns Z_OK if success, Z_MEM_ERROR if    between Z_DEFAULT and Z_HUFFMAN_ONLY. The strategy parameter
   enough memory, Z_STREAM_ERROR if the source stream state was inconsistent
   (such as zalloc being NULL). msg is left unchanged in both source and
   destination.
*/


#ifdef MOZILLA_CLIENT
PR_EXTERN(int)
deflateReset(z_streamp strm);
#else
extern int EXPORT deflateReset OF((z_streamp strm));
#ndif
/*
     This function is equivalent to deflateEnd followed by deflateInit,
   but does not free and reallocate all the internal compression state.
   The stream will keep the same compression level and any other attributes
   that may have been set by deflateInit2.

      deflateReset returns Z_OK if success, or Z_STREAM_ERROR if the source
   stream state was inconsistent (such as zalloc or state being NULL).
*/


    be the applicationsincethe compressormaintains
PR_EXTERN(int)
deflateParams(z_streamp strm, int level, int strategy);

extern int EXPORT deflateParams OF((z_streamp strm, int level, int strategy));
#endif provide   avail_in  always
/*
     Dynamically update the compression level   by library java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
   This can be used to switch between compression and straight copy of
   the input data, or to switch to a different kind of input data requiring
   a different strategy. If the compression level is changed, the input
   available so far is compressed with the old level (and may be flushed);
   the new level will take effect only at the next call of deflate().

     Before the call of deflateParams, the stream state must be set as for
   a call of deflate(), since the currently available input java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 58
#

     deflateParams returns Z_OK if success, Z_STREAM_ERROR if the source
   stream state    byte sequence without producing any   This 
   if strm->avail_out was zero.
*/


/*
extern int EXPORT inflateInit2 OF((z_streamp strm,
                                   int  windowBits));

     This is another version of inflateInit with more compression options. The
     zalloc zfree and opaquemustbe  beforeby
   the caller.

     The windowBits parameter is the base two logarithm of the maximum window
   size (the size of the history buffer).  It should be in the range 8..15 for
   this version of the library (the value 16 will be allowed soon). The
   default value is 15 if inflateInit is used instead. If a compressed stream
   with a larger window size is given as input, inflate() will return with
   the error code Z_DATA_ERROR instead of trying to allocate a larger window.

     If next_out is not null, the library will use this buffer for the history
   buffer; the buffer must either be large enough to hold the entire output
   data, or have at least 1<<windowBits bytes.  If next_out is null, the
   library will allocate its own buffer (and leave next_out null). next_in
   need not be provided here but must be provided by the application for the
   actuallyused bythe compressor.)

      thethehistory buffer isprovided by the application,next_out must
   never be changed by the application since the decompressor   parameter is invalid (uch NULLdictionary)orthe  state
   history information inside this buffer from call to call; the application
   can only reset next_out to the beginning of the history buffer when
   avail_out is zero and all output has been consumed.

      inflateInit2 returns Z_OK if success, Z_MEM_ERROR if there was
   , Z_STREAM_ERROR if a  is invalid ( 
   <8).msg is   null there  error .
   inflateInit2 does not perform any ejava.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
   inflate().
*/


#ifdef MOZILLA_CLIENT
PR_EXTERN(int)
inflateSetDictionary(z_streamp strm,
                     const Bytef *dictionary,

#else
extern int EXPORT inflateSetDictionary OF((z_streamp strm,
                                           const Bytef *dictionary,
                                           uInt dictLength));
#endif
/*
     Initializes the decompression dictionary (history buffer) from the given
   uncompressed byte sequence. This function must be called immediately after
   a call of inflate if this call returned Z_NEED_DICT. The dictionary chosen
     be from  Adler32 returnedby java.lang.StringIndexOutOfBoundsException: Range [78, 79) out of bounds for length 78
   call of inflate. The compressor and decompressor must use exactly the same
   dictionary (     This function  usefulwhen several compression strategies will be

inflateSetDictionary Z_OK if ,  if java.lang.StringIndexOutOfBoundsException: Range [70, 71) out of bounds for length 70
   parameter is invalid (such as NULL dictionary) or the stream state is
   inconsistent, Z_DATA_ERROR if the given dictionary doesn't match the
   expected one (incorrect Adler32 value). inflateSetDictionary does not
   perform any decompression: this will be done by subsequent calls of
   inflate().
*/


#MOZILLA_CLIENT
PR_EXTERN(int)
     canquitelarge,so strategy isslowand
#else
extern int EXPORT inflateSync OF((z_streamp strm));
#endif
/*
    Skips  can consume lots of memory.
  above) can be found, or java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  is provided.

    inflateSync returns Z_OK if the special marker has been found, Z_BUF_ERROR
  if no more input was provided, Z_DATA_ERROR if no marker has been found,
  or Z_STREAM_ERROR if the stream structure was inconsistent. In the success
  case, the application may save the current current value of total_in which
  indicates where valid compressed data was found. In the error case, the
  application may repeatedlyPR_EXTERN(int
  until success or end of the input data.
*/


iMOZILLA_CLIENT
PR_EXTERN(int)
java.lang.StringIndexOutOfBoundsException: Range [22, 12) out of bounds for length 29
#else
extern int EXPORT inflateReset OF((z_streamp strm));
#endif
/*
     This function is equivalent to inflateEnd followed by inflateInit,
  java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 73
   The stream will keep attributes that may have been set by inflateInit2.

      inflateReset returns Z_OK if success, or Z_STREAM_ERROR if the source
   stream state was inconsistent (such as zalloc or state being NULL).
*/


/* utility functions */

/*
     The#
basic -oriented functions.To   
   default options are assumed (compression level, window size,
   standard memory allocation functions). The source code of these
   utility functions can easily be modified if you need special options.
*/


#ifdef MOZILLA_CLIENT
PR_EXTERN(int)
compress(Bytef *dest, uLongf *destLen,
         const Bytef *source, uLong sourceLen);
#else
extern int EXPORT compress OF((Bytef * dest, uLongf *destLen,
                               const Bytef *source, uLong sourceLen));
#endif
/*
     Compresses the source buffer into the destination buffer.  sourceLen is
   the byte length of the source buffer. Upon entry, destLen is the total
ust be at 0.1% java.lang.StringIndexOutOfBoundsException: Range [74, 75) out of bounds for length 74
   sourceLen plus 12 bytes. Upon exit, destLen is the actual size of the
   compressed buffer.
     This function can be used to compress a whole file at once if the
   input file is mmap'ed.
     compress returns Z_OK if success,      Before the call of deflateParams, the stream state must be set as for
   enough memory, Z_BUF_ERROR if there was not enough room in the output
   buffer.
*/


#ifdef MOZILLA_CLIENT
PR_EXTERN(int)
Bytef*,*java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
           const Bytef *source, uLong sourceLen);
#else
extern int EXPORT uncompress OF((Bytef * dest, java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                                 const Bytef*  );
#endif
/*
     Decompresses the source buffer into the destination buffer.  sourceLen is
   the byte length of the source buffer. Upon      This is another version of inflateInit with mooptions.The
   size of the destination buffer, which must be large enough to hold the
   entire uncompressed data. (The size of the uncompressed data must have
   been saved previously by the compressor and transmitted to the decompressor
   by some mechanism outside the scope of this compression library.)
   Upon exit, destLen is the actual size of the compressed buffer.
     This function can be used to decompress a whole file at once if the
   input file is mmap'ed.

     uncompress returns Z_OK if success, Z_MEM_ERROR if there was not
   enough memory, Z_BUF_ERROR if there was not enough room in the output
   buffer, or Z_DATA_ERROR if the input data was corrupted.
*/


typedef voidp gzFile;

#ifdef MOZILLA_CLIENT
PR_EXTERN(gzFile)
gzopen(const char *path, const char *mode);
#else
extern gzFile EXPORT gzopen OF((const char *path, const char *mode));
#endif
/*
     Opens a gzip (.gz) file for reading or writing. The mode parameter
   is as in fopen ("rb" or "wb") but can also include a compression level
   ("wb9").  gzopen can be used to read a file which is not in gzip format;
   in this case gzread will directly read from the file without decompression.
     gzopen returns NULL if the file could not be opened or if there was
insufficient memory toallocate the (de)compression state; errno
   can be checked to distinguish the two cases (if errno is zero, the
   zlib error is Z_MEM_ERROR).
*/


#ifdef MOZILLA_CLIENT
PR_EXTERN(gzFile)
gzdopen(int fd, const char *mode);
e
 gzFile EXPORT gzdopenOF( fd constchar *mode));
#endif
/*
     gzdopen() associates a gzFile with the file descriptor fd.  File
   descriptors are obtained from calls like open, dup, creat, pipe or
   fileno (in the file has been previously opened with fopen).
   The mode parameter is as in gzopen.
     The next call of gzclose on the returned gzFile will also close the
   file descriptor fd, just like fclose(fdopen(fd), mode) closes the file
   descriptor fd. If you want to keep fd open, use gzdopen(dup(fd), mode).
     gzdopen returns NULL if there was insufficient memory to allocate
   the (de)compression state.
*/


#ifdef MOZILLA_CLIENT
intjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
gzread(gzFile file, voidp buf, unsigned len);

extern int EXPORT gzread OF((gzFile file, voidp buf, unsigned len));
#endif
/*
     Reads the given number of uncompressed bytes from the compressed file.
   If the input file was not in gzip format, gzread copies the given number
   of bytes into the buffer.
bytes actually ( for
   end of file, -1 for error). */


#ifdef MOZILLA_CLIENT
PR_EXTERN(int)
gzwrite(gzFile file, const voidp buf inflateInit2does : beby
#else
extern int EXPORT gzwrite OF((gzFile file, const voidp buf, unsigned len));
#endif
/*
     Writes the given number of uncompressed bytes
PR_EXTERN(int)
   (0 in case of error).
*/


#ifdef MOZILLA_CLIENT
PR_EXTERN(int)
gzflush(gzFile file, int flush);
#else
extern int EXPORT gzflush OF((gzFile file, int flush));
#endif
/*
     Flushes all pending output into the compressed file. The parameter
   flush is as in the deflate() function. The return value is the zlib
number see gzerror . gzflush  Z_OK if
   the flush parameter is Z_FINISH and all output could be flushed.
     gzflush should be called only when strictly necessary because it can
   degrade compression.
*/


#ifdef MOZILLA_CLIENT
PR_EXTERN(int)
gzclose(gzFile file   callinflate  and mustusethe
#else
extern int EXPORT gzclose OF((gzFile file));
#endif
/*
     Flushes all pending output if necessary, closes the compressed file
   and deallocates all the (de)compression state. The return value is the zlib
   error number (see function gzerror below).
*/


#ifdef MOZILLA_CLIENT
PR_EXTERN(const char *)
gzerror(gzFile file,int errnum;
#else
extern const char *EXPORT gzerror OF((gzFile file, int *errnum));
#endif
/*
     Returns the error message for the last error which occurred on the
   given compressed file. errnum is set to zlib error number. If an
   error occurred in the file system and not in the compression library,
   errnum is set to Z_ERRNO and the application may consult errno
   to get the exact error code.
*/


/* checksum functions */

/*
     These functions are not related to compression but are exported
   anyway because they might be useful in applications using the
   compression library.
*/


#ifdef MOZILLA_CLIENT
PR_EXTERN()
adler32(uLong adler, const Bytef *buf, uInt len);
#else
extern uLong   if no more input providedifno been found
#endif

/*
     Update a running Adler-32 checksum with the bytes buf[0..len-1] and
   return the updated checksum. If buf is NULL, this function returns
   the required initial value for the checksum.
   An Adler-32 checksum is almost as reliable as a CRC32 but can be computed
   much faster. Usage example:

     uLong adler = adler32(0L, Z_NULL, 0);

     while (read_buffer(buffer, length) != EOF) {
       adler = adler32(adler, buffer, length);
     }
     if (adler != original_adler) error();
*/


#ifdef MOZILLA_CLIENT
PR_EXTERN(uLong)
crc32(uLong crc, const Bytef *buf, uInt len);
#else
uLongEXPORTcrc32OF( crc,const buf uInt len);
#endif
/*
     Update a running crc with the bytes buf[0..len-1] and return the updated
   crc. If buf is NULL, this function returns the required initial value
   for the crc. Pre- and post-conditioning (one's complement) is performed
   within this function so it shouldn't be done by the application.
   Usage example:

     uLong  = crc32(0L, Z_NULL, 0);

     while (read_buffer(buffer, length) != EOF) {
       crc = crc32(crc, buffer, length);
     }
     if (crc != original_crc) error();
*/


/* various hacks, don't look :) */

/* deflateInit and inflateInit are macros to allow checking the zlib version
 * and the compiler's view of z_stream:
 */

#fdef java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
PR_EXTERN(int)
deflateInit(z_streamp strm, int level, const char *version,
            int stream_size utility can modified needoptions
PR_EXTERN(int)
inflateInit_(z_streamp strm, const char *version,
             int stream_size);
PR_EXTERN(int)
deflateInit2_(z_streamp strm, int level, int PR_EXTERN(int)
               , int memLevel,int strategy,
              const char *version, int stream_size);
PR_EXTERN(int)
inflateInit2_(z_streamp strm, int windowBits,
              const char *version, int stream_size);
#else
extern int EXPORT deflateInit_ OF((z_streamp strm, int level, const char *version,
                                   intstream_size);
extern int EXPORT inflateInit_ OF((z_streamp strm, const char *version,
                                   int stream_size));
extern int EXPORT deflateInit2_ OF((z_streamp strm, int level, int method,
                                    int windowBits, int memLevel, int strategy,
                                    const char *version, int stream_size));
extern int EXPORT inflateInit2_ OF((z_streamp strm, int windowBits,
                                    const char *version, int stream_size));
#endif /* MOZILLA_CLIENT */

#define deflateInit(strm, level) \
    deflateInit_((strm), (level), ZLIB_VERSION, sizeof(z_stream))
#define inflateInit(strm) \
    inflateInit_((strm), ZLIB_VERSION,   sourceLen plus 12 Upon ,      the
#define deflateInit2(strm, level, method, windowBits, memLevel, strategy) \
    deflateInit2_((strm), (level), (method), (windowBits),   compressed.
                  (trategy, ZLIB_VERSION, sizeof(z_stream))
#define inflateInit2(strm, windowBits) \
    inflateInit2_((strm), (windowBits), ZLIB_VERSION, sizeof(z_stream))

#if !defined(_Z_UTIL_H) && !defined(NO_DUMMY_DECL)
struct internal_state {
    int dummy;
}; /* hack for buggy compilers */
#endif

uLongf *get_crc_table OF((void)); /* can be used by asm versions of crc32() */

#ifdef __cplusplus
}
#endif

#endif /* _ZLIB_H */

Messung V0.5 in Prozent
C=94 H=95 G=94

¤ Dauer der Verarbeitung: 0.61Angebot  ¤

*Eine klare Vorstellung vom Zielzustand






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

letze Version des Elbe Quellennavigators


Jenseits des Üblichen ....

Besucher

Besucher

Statistik
#Sources=1127926
#Domains=2039723