Crate z_rs

Crate z_rs 

Source

Structs§

gz_header
gzip header information passed to and from zlib routines. See RFC 1952 for more details on the meanings of these fields.
z_stream
The current stream state

Enums§

internal_state

Constants§

Z_ASCII
Z_BEST_COMPRESSION
Z_BEST_SPEED
Z_BINARY
Z_BLOCK
Z_BUF_ERROR
Z_DATA_ERROR
Z_DEFAULT_COMPRESSION
Z_DEFAULT_STRATEGY
Z_DEFLATED
Z_ERRNO
Z_FILTERED
Z_FINISH
Z_FIXED
Z_FULL_FLUSH
Z_HUFFMAN_ONLY
Z_MEM_ERROR
Z_NEED_DICT
Z_NO_COMPRESSION
Z_NO_FLUSH
Z_OK
Z_PARTIAL_FLUSH
Z_RLE
Z_STREAM_END
Z_STREAM_ERROR
Z_SYNC_FLUSH
Z_TEXT
Z_TREES
Z_UNKNOWN
Z_VERSION_ERROR

Functions§

adler32
Calculates the adler32 checksum of a sequence of bytes.
adler32_combine
Combines the checksum of two slices into one.
adler32_combine64
Combines the checksum of two slices into one.
adler32_z
Calculates the adler32 checksum of a sequence of bytes.
compress
Compresses source into dest, and writes the final deflated size into destLen.
compress2
Compresses source into dest, and writes the final deflated size into destLen.
compressBound
Returns an upper bound on the compressed size after compress or compress2 on sourceLen bytes.
crc32
Calculates the crc32 checksum of a sequence of bytes.
crc32_combine
Combines the checksum of two slices into one.
crc32_combine64
Combines the checksum of two slices into one.
crc32_z
Calculates the crc32 checksum of a sequence of bytes.
deflate
Compresses as much data as possible, and stops when the input buffer becomes empty or the output buffer becomes full.
deflateBound
Returns an upper bound on the compressed size after deflation of sourceLen bytes.
deflateCopy
Sets the destination stream as a complete copy of the source stream.
deflateEnd
Deallocates all dynamically allocated data structures for this stream.
deflateGetDictionary
Returns the sliding dictionary being maintained by deflate.
deflateInit2_
Initializes the state for compression
deflateInit_
Initializes the state for compression
deflateParams
Dynamically update the compression level and compression strategy.
deflatePending
Returns the number of bytes and bits of output that have been generated, but not yet provided in the available output.
deflatePrime
Inserts bits in the deflate output stream.
deflateReset
This function is equivalent to deflateEnd followed by deflateInit_, but does not free and reallocate the internal compression state.
deflateSetDictionary
Initializes the compression dictionary from the given byte sequence without producing any compressed output.
deflateSetHeader
Provides gzip header information for when a gzip stream is requested by deflateInit2_.
deflateTune
Fine tune deflate’s internal compression parameters.
get_crc_table
The CRC table used by the crc32 checksum algorithm.
inflate
Decompresses as much data as possible, and stops when the input buffer becomes empty or the output buffer becomes full.
inflateBack
Decompresses as much data as possible, and stops when the input buffer becomes empty or the output buffer becomes full.
inflateBackEnd
Deallocates all dynamically allocated data structures for this stream.
inflateBackInit_
Initializes the state for decompression
inflateCopy
Sets the destination stream as a complete copy of the source stream.
inflateEnd
Deallocates all dynamically allocated data structures for this stream.
inflateGetDictionary
Returns the sliding dictionary being maintained by inflate.
inflateGetHeader
Requests that gzip header information be stored in the provided gz_header structure.
inflateInit2_
Initializes the state for decompression
inflateInit_
Initializes the state for decompression
inflateMark
Gives information about the current location of the input stream.
inflatePrime
Inserts bits in the inflate input stream.
inflateReset
Equivalent to inflateEnd followed by inflateInit_, but does not free and reallocate the internal decompression state.
inflateReset2
This function is the same as inflateReset, but it also permits changing the wrap and window size requests.
inflateSetDictionary
Initializes the decompression dictionary from the given uncompressed byte sequence.
inflateSync
Skips invalid compressed data until
uncompress
Inflates source into dest, and writes the final inflated size into destLen.
zError
Get the error message for an error. This could be the value returned by e.g. compress or inflate.
zlibCompileFlags
Return flags indicating compile-time options.
zlibVersion
The version of the zlib library.

Type Aliases§

Bytef
alloc_func
free_func
gz_headerp
in_func
out_func
size_t
uInt
uLong
uLongf
voidp
voidpc
voidpf
z_off64_t
z_off_t
z_streamp