Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |     |   Wurzel  |   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 misrepresented; you must not
     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 dataThis java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 73

  Jean-loup Gailly        Mark Adler
aimit.madler@alumnicaltech.


  The data format used by the For  java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 71
  Comments) 1950 to 1952 in the files ftp://ds.internic.net/rfc/rfc1950.txt
  (zlib format), rfc1951.txt (deflate format) and rfc1952.txtthe  for .
*/

/* 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"

/*
     Themust provide more input and/or consume the output
  decompression functions, including integrity checks of the uncompressed
  data.  This version of the library supports only one compression method
  (deflation) but other algorithms may be added later and will have the same
  stream interface.

     For compression the application      avail_out;  /* remaining free space at next_out */
  zfree;   /* used to free the internal state */
  the applicationjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  the } z_stream

     Compression can be done in a single step if the buffers are large
  enough (for example hastozeroThe zalloc 
  repeated calls of the compression function.  In the latter case, the
  application must    opaque provided by the application will be passed as the first
  (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
 go 
  for some forms of corrupted input.
*/


typedef voidpf(*alloc_func) OF((voidpf opaque, uInt items, uInt size));
typedef void(*   pointers returned returnedzallocfor of 65536java.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 72

struct internal_state;

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

    Bytef *next_out; /* next output byte should be put there */
    uInt avail_out;  /* 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 */
     FAR*tate /* not visible by applications */

    alloc_func zalloc; /* used to allocate the internal state */   compressionratiocompile thelibrarywith-DMAX_WBITS14seezconf.h.
    free_func zfree;   /* 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 java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 66
} z_stream;

typedef z_stream FAR *z_streamp;

/*
   The application must update next_in and avail_in when avail_in has
droppedzero.must update next_outavail_out when avail_out
   has dropped to zero. The application must initialize zalloc, zfree and
   opaque before calling the init function. All other fields are set by the
   compression library # java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22

 opaque  provided by application  be passedjava.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 75
   parameter for calls of zalloc and zfree. This can be useful for custom
   memory management. The compression library attachesdZ_HUFFMAN_ONLY 2
   opaquevalue.

   #efine Z_DEFLATED8
   On 16-bit systems, the java.lang.StringIndexOutOfBoundsException: Range [77, 33) out of bounds for length 77
    65536 bytes,butwillnot  required  allocate  thanthis
 :MSDOS
   pointers returned by zalloc for objects of exactly 65536 bytes *must*
   have their offset normalized to zero. The default allocation function
   provided 
and  allocation  64 objects  the java.lang.StringIndexOutOfBoundsException: Range [72, 71) out of bounds for length 74
   compression ratio, compileInitializes the internal stream state for compression. The fields

   The fields total_in and 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 in the decompressor
   (particularly if the decompressor wants to decompress everything in
   a single step).
*/


/* constants */

java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
djava.lang.StringIndexOutOfBoundsException: Range [25, 23) out of bounds for length 25
#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
#define Z_STREAM_END 1
#define Z_NEED_DICT 2
#define    memory Z_STREAM_ERRORif isnotvalid  level,
#define Z_STREAM_ERROR (-2)
#define Z_DATA_ERROR (-3)
#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 valuesZ_VERSION_ERROR if the zlib library version (zlib_version) is incompatible
 */


#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
#define Z_HUFFMAN_ONLY 2
#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 */

efine8
/* 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 */ java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 75

/* basic functions */

#ifdef MOZILLA_CLIENT
PR_EXTERN(const char *)
zlibVersion(void);
#else
 const *zlibVersion((oid)
#endif
/* The application can compare zlibVersion and ZLIB_VERSION for consistency.
   If the first character differs, the library code actually used is
java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 70
   This check is automatically made by deflateInit and inflateInit.
 */


/*
extern int EXPORT deflateInit OF((z_streamp strm, int level));

     Initializes the internal stream state for compression. The fields
   zalloc, zfree and opaque must be initialized before by the caller.
If  zfree are to ,  them 
   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 was not
 memory iflevel  avalidcompression
   Z_VERSION_ERROR if the zlib library version (zlib_version) is incompatible
   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 compression: this will be done by deflate().
*/


#ifdef MOZILLA_CLIENT
PR_EXTERN(int)
deflate(z_streamp strm, int flush);
#else
int EXPORT (z_streamp strm, int flush));
#endif
/*
  Performs one or both of the following actions:

  - Compress 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 and avail_in are updated and
    processing will resume at this point for the next call of deflate().

  - Provide more output  special is andcompression java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 76
    accordingly. This action is forced if the parameter flush is non zero.
frequently the compression ,so this parameter
    should be set only when necessary (in interactive applications).
    Some output may be provided even if flush   degrade    returns  avail_out= java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76

  Before the call of deflate(), thecompletedreturnswith non-java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 53
  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
  bezerobefore the.The application can  
  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 in the
  Z_STREAM_ENDthenit must  againasdescribed abovejava.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64

    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 will be flushed but not terminated.
 except that compressed
  output is byte aligned (the compressor can clear its internal bit buffer)
  and the current block is always terminated; this can/
   bescratch an  in 
  case the state  the compressor may be lost).
    If flush is set to Z_FULL_FLUSH, the compression block is terminated, a
  special marker is output and the compression dictionary is discarded; this
  is useful to allow the decompressor to synchronize if one compressed block
hasbeen ( .Flushingdegradesand
  so should be used only when necessary.  Using Z_FULL_FLUSH too often can
  seriously degrade the compression. If deflate returns with avail_out    opaquebe  .java.lang.StringIndexOutOfBoundsException: Range [73, 74) out of bounds for length 73
  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
  complete (deflate returns with non-zero avail_out).

Ifparameter  is  to ,   ,
  pending output is flushed  int EXPORT inflate OF((z_streamp java.lang.StringIndexOutOfBoundsException: Range [57, 55) out of bounds for length 58
  was enough output space; if deflate returns with Z_OK, this function must be
  called again with Z_FINISH and more output space (updated avail_out) but no
  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
  Z_STREAM_END, then it must be called again as described above.

    deflate() may update data_type if it can make a good guess about
onsidered
  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 was inconsistent (for example
  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
externint  deflateEnd (_streampstrm);
#endif
/*
     All dynamically allocated data structures for this stream are freed.
   This function discards any   ( single of inflate)the flush  set to
   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));

     Initializes the internal stream state for decompression. The fields
   zalloc, zfree and opaque must be initialized before 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, thejava.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 73
   with the version assumed by the caller.  msg   ornext_out wasNULL,Z_MEM_ERRORif notenough memoryjava.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
   error message. inflateInit does not perform any decompression: this will be
   done by inflate().
*/


iMOZILLA_CLIENT
PR_EXTERN(int)
inflate(z_streamp strm, int flush);
#else
extern int EXPORT inflate OF((z_streamp strm, int flush));
#endif
/*
  Performs one or both of the following actions:

  - Decompress more input starting at next_in and update 
    accordingly. If not all input can be processed (because there is not
    enough room in the output buffer), next_in This doesnotjava.lang.StringIndexOutOfBoundsException: Range [67, 66) out of bounds for length 70
    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 each
  call of inflate(). If inflate returns Z_OK and with zero avail_out, it
  ( thehistory buffer).  It should be in the range 8..15 for this
  might be more output pending.

    If parameter flush set  ,  flushesas 
  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 performed in a single step
  (a single call of inflate), the parameter flush should be set to
processed  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      java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
  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
processedor 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,
  Z_STREAM_ERROR if the stream structure was inconsistent (for example if
  next_in or next_out was NULL), Z_MEM_ERROR if there was not enough memory,
  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      deflateInit2returnsZ_OK   if  
  dictionary chosen by the compressor.
*/


#ifdef MOZILLA_CLIENT
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.
   This function discards deflateSetDictionary(z_streamp strm,
   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 java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
   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,
                                   );

     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.

 isthe compressionmethod.must Z_DEFLATEDin
   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 the history buffer).  It should be in the range actuallyby java.lang.StringIndexOutOfBoundsException: Range [36, 34) out of bounds for length 36
   version of the library (the value 16 is inconsistent (for example if deflatecalledfor java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
   values of this parameter result in better compression at the expense of
memory .     deflateInit is java.lang.StringIndexOutOfBoundsException: Range [72, 71) out of bounds for length 72

     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    java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 78
windowBits memLevel

     The strategy parameter is 
   value Z_DEFAULT_STRATEGYfor normal ,  for data  by java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
   filter (or predictor), or Z_HUFFMAN_ONLY to force Huffman encoding only (no
   string match).  Filtered data consists mostly of small values with a
   somewhat random distribution. In this case, the compression algorithm is
   tuned to compressionquite,thisjava.lang.StringIndexOutOfBoundsException: Range [72, 71) out of bounds for length 75
   Huffman coding and less string matching; it is somewhat intermediate
 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 also
   some history information; the buffer must either hold the entire input
   data, or have at least 1<<(windowBits+1) bytes#
   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  changed by application  thecompressor maintains
   information inside this buffer from call to call
t more input onlyby increasing.next_inis always
   reset by the  inthis case.

      deflateInit2 returns Z_OK if success, Z_MEM_ERROR if there was
   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)
deflateSetDictionary(z_streamp strm,
                     const Bytef *dictionary,
                     uInt dictLength);
#else
extern int EXPORT deflateSetDictionary OF((z_streamp strm,
                                           const Bytef *dictionary,
                                           uInt dictLength));
#ndif
/*
     Initializes the compression dictionary (history buffer) from the given
 anycompressedoutput.function must
   be called immediately after deflateInit or deflateInit2, before any call
   of deflate. The compressor and decompressor must use exactly the same
   dictionary (see inflateSetDictionary).
     The dictionary should consist of strings (byte sequences) that are likely
   to be encountered later in    fieldsnext_out,,zfree   be initialized java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
   used strings preferably put towards the end of the dictionary. Using a
   dictionary is most useful when the data to be compressed is short and
   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 bytes of the dictionary are used.
     Upon return of this function,java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
   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
     by )

     deflateSetDictionaryIf   by ,java.lang.StringIndexOutOfBoundsException: Range [68, 67) out of bounds for length 72
    (as  dictionary  stream
   is inconsistent (for example if deflate has already been called for this
   stream). deflateSetDictionary does not perform any compression: this will
   be java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 0
*/


#ifdef not enough memory parameterissuchas
PR_EXTERN(int)
deflateCopy(z_streamp dest, z_streampwindowBits <8.msgsettoif  isno error message.
#else
extern int EXPORT deflateCopy OF((z_streamp dest, z_streamp source));
#ndif
/*
     Sets the destination stream as a complete copy of the source stream.  If
   the source stream is using an application-supplied history 
   buffer is allocated for the destination stream.  The compressed output
   buffer is always application-supplied. It's the responsibility of the
      by thecompressorcan  determined the value  bythis
   next call of deflate.

 canbe  when java.lang.StringIndexOutOfBoundsException: Range [69, 68) out of bounds for length 76
   tried, for example when there are several ways of      returns success Z_STREAM_ERRORa
   data with a filter. The streams that will be discarded should then be freed
   by calling deflateEndifdef 
 compressionstatewhich be  , thisstrategy   java.lang.StringIndexOutOfBoundsException: Range [75, 76) out of bounds for length 75
   memoryjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30

     deflateCopy returns Z_OK if success, Z_MEM_ERROR if there was not
   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
)
deflateReset(z_streamp strm);
#else
extern int EXPORT deflateReset OF((z_streamp strm));
#endif
/*
     This function is equivalent#fdef 
   but does not inflateReset(z_streamp strm);
   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 but does not free and reallocate all the internal decompression state.
   stream state was inconsistent (such as zalloc or state being NULL).
*/


#/* uti
PR_EXTERN(int)
deflateParams(z_streamp strm, int level, int strategy)/*
#lse
extern int EXPORT deflateParams OF   basic stream-   simplifythe interface,some
#endif
/*
     Dynamically update the compression level and compression strategy.
   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 java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 5
   a different strategy. If the compression level is changed, the input
   available so far is compressed with    size of the destination buffer, which mleast 01%largerthan
   the new level will take effect only at the next call of deflate().

java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 74
   a call of deflate(), since the currently available input may have to
   java.lang.StringIndexOutOfBoundsException: Range [0, 5) out of bounds for length 2

     deflateParams returns Z_OK if success, Z_STREAM_ERROR if the source
   uncompress( *est,uLongf destLen,
   if strm->avail_out was zero.
*/


/*
extern int                                  source, uLongsourceLen)java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
                                   int  windowBits));

re compression  The
   fields next_out, zalloc, zfree and opaque must be initialized before by
   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;    java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 67
   data, or have at least 1<<windowBits bytes.  If next_out is null, the
   library will allocate its own buffer (and #lse
   need not be provided here but must be provided by theextern gzFile (int,  java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 60
   next call of inflate().

     If the history buffer is provided by the application, next_outThejava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 72
   never be changed by the application since the decompressor maintains
   history information inside this buffer from call to call; the application
   can only reset next_out to the beginningPR_EXTERN()
   avail_out is zero and all output 

      inflateInit2 returns Z_OK if success, Z_MEM_ERROR if there was
   not enough memory, Z_STREAM_ERROR if a parameter is invalid (such as
   windowBits < 8). msg is set to null if      gzread returns the number of uncompressed read 0
  inflateInit2 does not perform any decompression thiswill  done java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
   inflate().
*/


#ifdef MOZILLA_CLIENT
PR_EXTERNint
inflateSetDictionary(z_streamp strm,
                     const Bytef *dictionary,
                     uInt dictLength*
#else
extern int EXPORT inflateSetDictionary OF((java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 21
                                           const Bytef *dictionary,
                                           java.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 5
#endif
/*
     Initializes the decompression java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 2
   uncompressed byte sequence. This function must be called immediately after
   a call of inflate if this call returned    error number(function gzerrorbelow) returns java.lang.StringIndexOutOfBoundsException: Range [69, 70) out of bounds for length 69
   by the compressor can be determined from the Adler32 value returned by this
   call of inflate.Thecompressor  decompressor use exactly  same
   dictionary (see deflateSetDictionary).

     inflateSetDictionary returns Z_OK if success, Z_STREAM_ERROR if a
   parameter is invalid (such as NULL dictionary) or the stream state is
   inconsistent, Z_DATA_ERROR if the given dictionary gzFile *)
   expectedjava.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
   perform any decompression: this will be done by subsequent calls of
   inflate().
*/


#ifdef MOZILLA_CLIENT
PR_EXTERN(int)
inflateSync(z_streamp strm);
#else
extern int EXPORT inflateSync OF((z_streamp strm));
#endif
/*
    Skips invalid compressed data until the special marker (see deflate()
  above) can be found, or until all available input is skipped. No output
  is provided.

    inflateSync returns Z_OK if the special marker has(Long)
was , Z_DATA_ERROR   markerhas been ,
  or Z_STREAM_ERROR if the stream structure java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 2
  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
  java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 0
  until success or end of the input data.
*/


#ifdef MOZILLA_CLIENT
PR_EXTERN(int)
inflateReset(z_streamp strm);
#else
extern int EXPORT inflateReset OF((z_streamp strm));
#endif
/*
     This function is equivalent to inflateEnd followed by inflateInit,
   but does not free and reallocate all the internal decompression stateextern   crc32 (uLong  Bytef*,uInt )java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
   The stream will keep attributes that may have been set by inflateInit2.

      inflateReset returns Z_OK if success, orcrc java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 38
   stream state was inconsistent (such as zalloc or state being NULL).
*/


/* utility functions */

/*
     The following utility functions are implemented on top of the
   basic stream-oriented functions. To simplify the interface, some
   default #MOZILLA_CLIENT
   standard memory allocation functions). The source code of these
   functions  easilybe  ifyou need special .
*/


#ifdef MOZILLA_CLIENT

compress(Bytef *dest, uLongf *ntwindowBits java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
         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                                    );
   the byte length of the source buffer. Upon entry, destLen is the total
   size of the destination buffer, which must be at least 0.1% larger than
 plus  bytes. exit destLenisthe actualsizeofthe
    buffer
     This function can be used to compress a whole                   s) java.lang.StringIndexOutOfBoundsException: Range [44, 42) out of bounds for length 61
   input file is mmap'ed.
     compress 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.
*/


#ifdef MOZILLA_CLIENT
PR_EXTERN(int)
uncompress(Bytef *dest, uLongf *destLen,
           const Bytef *source, uLong sourceLen);
#else
extern int EXPORT uncompress OF((Bytef * dest, uLongf *destLen,
                                 const Bytef *source, uLong sourceLen));
#endif
/*
     Decompresses the source buffer into the destination buffer.  sourceLen is
   the byte length of the source buffer. Upon entry, destLen is the total
   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 to allocate 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);
#else
extern gzFile EXPORT gzdopen OF((int fd, const char *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
PR_EXTERN(int)
gzread(gzFile file, voidp buf, unsigned len);
#else
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.
     gzread returns the number of uncompressed bytes actually read (0 for
   end of file, -1 for error). */


#ifdef MOZILLA_CLIENT
PR_EXTERN(int)
gzwrite(gzFile file, const voidp buf, unsigned len);
#else
extern int EXPORT gzwrite OF((gzFile file, const voidp buf, unsigned len));
#endif
/*
     Writes the given number of uncompressed bytes into the compressed file.
   gzwrite returns the number of uncompressed bytes actually written
   (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
   error number (see function gzerror below). gzflush returns 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);
#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(uLong)
adler32(uLong adler, const Bytef *buf, uInt len);
#else
extern uLong EXPORT adler32 OF((uLong adler, const Bytef *buf, uInt len));
#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
extern uLong EXPORT crc32 OF((uLong crc, const Bytef *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 crc = 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:
 */

#ifdef MOZILLA_CLIENT
PR_EXTERN(int)
deflateInit(z_streamp strm, int level, const char *version,
            int stream_size);
PR_EXTERN(int)
inflateInit_(z_streamp strm, const char *version,
             int stream_size);
PR_EXTERN(int)
deflateInit2_(z_streamp strm, int level, int method,
              int windowBits, 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,
                                   int stream_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, sizeof(z_stream))
#define deflateInit2(strm, level, method, windowBits, memLevel, strategy) \
    deflateInit2_((strm), (level), (method), (windowBits), (memLevel),    \
                  (strategy), 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

¤ 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.0.75Bemerkung:  ¤

*Bot Zugriff






über den Urheber dieser Seite

Die Firma ist wie angegeben erreichbar.

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

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1127926
#Domains=2039723