Crate z_rs

source ·

Structs§

  • gzip header information passed to and from zlib routines. See RFC 1952 for more details on the meanings of these fields.

Enums§

Constants§

Functions§

  • Calculates the adler32 checksum of a sequence of bytes.
  • Combines the checksum of two slices into one.
  • Compresses source into dest, and writes the final deflated size into destLen.
  • Compresses source into dest, and writes the final deflated size into destLen.
  • Returns an upper bound on the compressed size after compress or compress2 on sourceLen bytes.
  • Calculates the crc32 checksum of a sequence of bytes.
  • Combines the checksum of two slices into one.
  • Compresses as much data as possible, and stops when the input buffer becomes empty or the output buffer becomes full.
  • Returns an upper bound on the compressed size after deflation of sourceLen bytes.
  • Sets the destination stream as a complete copy of the source stream.
  • Deallocates all dynamically allocated data structures for this stream.
  • Initializes the state for compression
  • Initializes the state for compression
  • Dynamically update the compression level and compression strategy.
  • Returns the number of bytes and bits of output that have been generated, but not yet provided in the available output.
  • Inserts bits in the deflate output stream.
  • This function is equivalent to deflateEnd followed by deflateInit_, but does not free and reallocate the internal compression state.
  • Initializes the compression dictionary from the given byte sequence without producing any compressed output.
  • Provides gzip header information for when a gzip stream is requested by deflateInit2_.
  • Fine tune deflate’s internal compression parameters.
  • Decompresses as much data as possible, and stops when the input buffer becomes empty or the output buffer becomes full.
  • Decompresses as much data as possible, and stops when the input buffer becomes empty or the output buffer becomes full.
  • Deallocates all dynamically allocated data structures for this stream.
  • Initializes the state for decompression
  • Sets the destination stream as a complete copy of the source stream.
  • Deallocates all dynamically allocated data structures for this stream.
  • Requests that gzip header information be stored in the provided gz_header structure.
  • Initializes the state for decompression
  • Initializes the state for decompression
  • Gives information about the current location of the input stream.
  • Inserts bits in the inflate input stream.
  • Equivalent to inflateEnd followed by inflateInit_, but does not free and reallocate the internal decompression state.
  • This function is the same as inflateReset, but it also permits changing the wrap and window size requests.
  • Initializes the decompression dictionary from the given uncompressed byte sequence.
  • Skips invalid compressed data until
  • Inflates source into dest, and writes the final inflated size into destLen.
  • Get the error message for an error. This could be the value returned by e.g. compress or inflate.
  • The version of the zlib library.

Type Aliases§